Spaces:
Sleeping
Sleeping
Praneeth Yerrapragada
commited on
Commit
•
3f95174
1
Parent(s):
c9cebd4
build: fix permissioning .next/cache
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -48,7 +48,8 @@ RUN adduser --system --uid 1001 nextjs
|
|
48 |
COPY --from=builder /app/public ./public
|
49 |
|
50 |
# Set the correct permission for prerender cache
|
51 |
-
RUN mkdir .next
|
|
|
52 |
RUN chown nextjs:nodejs .next
|
53 |
|
54 |
# Automatically leverage output traces to reduce image size
|
|
|
48 |
COPY --from=builder /app/public ./public
|
49 |
|
50 |
# Set the correct permission for prerender cache
|
51 |
+
RUN mkdir -p .next/cache
|
52 |
+
RUN chmod -R 777 .next
|
53 |
RUN chown nextjs:nodejs .next
|
54 |
|
55 |
# Automatically leverage output traces to reduce image size
|