Skip to content

Commit 43637f9

Browse files
committed
[skip ci] update Dockerfile
1 parent 0249865 commit 43637f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ WORKDIR /app
8989
RUN addgroup --system --gid 1001 nodejs
9090
RUN adduser --system --uid 1001 nextjs
9191

92+
# Set the correct permission for prerender cache
93+
RUN mkdir .next
94+
RUN chown nextjs:nodejs .next
95+
9296
COPY --from=builder /app/next.config.js ./
9397
COPY --from=builder /app/public ./public
9498
COPY --from=builder /app/package.json ./package.json

0 commit comments

Comments
 (0)