Trying to fix image caching issue in docker container

This commit is contained in:
2025-09-11 18:11:08 -05:00
parent 4cafc11422
commit 2be923f635

View File

@@ -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 ./