fix: copy files from inside the container

This commit is contained in:
Henry
2025-06-16 22:23:44 +01:00
parent b90defa872
commit aba9f972a8

View File

@@ -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