This commit is contained in:
@@ -29,6 +29,9 @@ WORKDIR /app
|
||||
|
||||
ENV NODE_ENV production
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
ENV VISIT_DB_PATH /server_storage/visitors.db
|
||||
|
||||
RUN apk add --no-cache libc6-compat libstdc++
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
@@ -36,7 +39,7 @@ RUN adduser --system --uid 1001 nextjs
|
||||
COPY --from=builder /app/public ./public
|
||||
|
||||
# Create server_storage directory for SQLite DB
|
||||
RUN mkdir -p /server_storage && chown nextjs:nodejs /server_storage
|
||||
RUN mkdir -p /server_storage && chown nextjs:nodejs /server_storage && chmod 700 /server_storage
|
||||
|
||||
# Set the correct permission for prerender cache
|
||||
RUN mkdir .next
|
||||
|
||||
Reference in New Issue
Block a user