From b4a9f0c68a8c2203f18630fc82b4524b2efd6a4c Mon Sep 17 00:00:00 2001 From: Victor Oladimeji Date: Sun, 7 Jun 2026 12:43:12 +0100 Subject: [PATCH] fix(frontend): copy Next.js export from out/ not dist/ in Docker build The frontend is Next.js with output: 'export', which writes the static site to ./out. The Dockerfile copied /app/dist (a Vite-era path that no longer exists), producing a broken nginx image. Point COPY at /app/out, matching the root package.json build script that already uses out/. Closes #40 --- frontend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 5ca4077..71c665f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -7,6 +7,7 @@ COPY . . RUN npm run build FROM nginx:alpine -COPY --from=builder /app/dist /usr/share/nginx/html +# Next.js static export (output: 'export') writes to ./out, not ./dist +COPY --from=builder /app/out /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]