From 4d48bf140dc44f0e53c10ca96d3fcd122fdc571f Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 16 Jun 2025 21:39:59 +0100 Subject: [PATCH] fix: copy static files to standalone dir --- apps/web/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index d898e44b..38ce8c4b 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -55,6 +55,10 @@ COPY --from=pruner /app/out/full/ . RUN pnpm build --filter=${PROJECT} +# Copy static files to standalone directory +COPY public .next/standalone/ +COPY .next/static .next/standalone/.next/ + # 4. Final image - runner stage to run the application FROM base AS runner ARG APP_DIRNAME