From aba9f972a856a489aff66ad5c466c96f74a747e9 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 16 Jun 2025 22:23:44 +0100 Subject: [PATCH] fix: copy files from inside the container --- apps/web/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 3ee17bd1..8349e326 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -53,12 +53,10 @@ 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/ . -WORKDIR /app/apps/web RUN pnpm build --filter=${PROJECT} # Copy static files to standalone directory -COPY public .next/standalone/ -COPY .next/static .next/standalone/.next/ +RUN cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/ # 4. Final image - runner stage to run the application FROM base AS runner