fix: copy files from inside the container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user