fix: update Dockerfile to create and set permissions for .next directory during build process
This commit is contained in:
@@ -40,8 +40,8 @@ RUN adduser --system --uid 1001 nextjs
|
||||
COPY --from=builder /app/public ./public
|
||||
|
||||
# Set the correct permission for prerender cache
|
||||
mkdir .next
|
||||
chown nextjs:nodejs .next
|
||||
RUN mkdir .next
|
||||
RUN chown nextjs:nodejs .next
|
||||
|
||||
# Automatically leverage output traces to reduce image size
|
||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||
|
||||
Reference in New Issue
Block a user