Programmer-RD-AI commited on
Commit
56b0bb8
·
1 Parent(s): 4026e3f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -34,7 +34,9 @@ RUN adduser --system --uid 1001 nextjs
34
 
35
  COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
36
  COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
37
- COPY --from=builder --chown=nextjs:nodejs /app/public ./public
 
 
38
 
39
  USER nextjs
40
 
 
34
 
35
  COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
36
  COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
37
+
38
+ # Handle potentially missing public folder
39
+ COPY --from=builder --chown=nextjs:nodejs /app/public ./public 2>/dev/null || mkdir -p ./public
40
 
41
  USER nextjs
42