Trying to fix image caching issue in docker container
This commit is contained in:
@@ -36,6 +36,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
|||||||
RUN addgroup -S nodejs -g 1001 && adduser -S nextjs -u 1001
|
RUN addgroup -S nodejs -g 1001 && adduser -S nextjs -u 1001
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
RUN mkdir .next && chown -R nextjs:nodejs .next
|
RUN mkdir .next && chown -R nextjs:nodejs .next
|
||||||
|
RUN mkdir -p .next/cache && chown -R nextjs:nodejs .next
|
||||||
|
|
||||||
# Next standalone output
|
# Next standalone output
|
||||||
COPY --from=builder /app/.next/standalone ./
|
COPY --from=builder /app/.next/standalone ./
|
||||||
|
Reference in New Issue
Block a user