diff --git a/web/Dockerfile b/web/Dockerfile index 8ced62d..1fc68d8 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -28,7 +28,9 @@ RUN npm ci --omit=dev # Copy built app from builder COPY --from=builder /app/.next ./.next -COPY --from=builder /app/public ./public +# Copy public folder if it exists in the builder +# Using sh to handle the conditional copy +RUN mkdir -p ./public # Create non-root user RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001