From d65244f94d5f4106e21c5472dd989f599af0dc24 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 16 Jun 2025 22:42:58 +0100 Subject: [PATCH] fix: copy static files --- apps/web/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index aa00b3ed..06b0e1d5 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -53,6 +53,7 @@ RUN --mount=type=cache,id=pnpm,target=~/.pnpm-store pnpm install --frozen-lockfi # Copy source code of isolated subworkspace COPY --from=pruner /app/out/full/ . + RUN pnpm build --filter=${PROJECT} # Copy static files to standalone directory @@ -61,6 +62,11 @@ RUN pwd && ls -la && \ ls -la .next || true && \ echo "=== Contents of .next/standalone ===" && \ ls -la .next/standalone || true + +RUN mkdir -p apps/web/.next/standalone/.next && \ +mv apps/web/public apps/web/.next/standalone/ && \ +mv apps/web/.next/static apps/web/.next/standalone/.next/ + # 4. Final image - runner stage to run the application FROM base AS runner ARG APP_DIRNAME