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 source code of isolated subworkspace
|
||||||
COPY --from=pruner /app/out/full/ .
|
COPY --from=pruner /app/out/full/ .
|
||||||
|
|
||||||
WORKDIR /app/apps/web
|
|
||||||
RUN pnpm build --filter=${PROJECT}
|
RUN pnpm build --filter=${PROJECT}
|
||||||
|
|
||||||
# Copy static files to standalone directory
|
# Copy static files to standalone directory
|
||||||
COPY public .next/standalone/
|
RUN cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/
|
||||||
COPY .next/static .next/standalone/.next/
|
|
||||||
|
|
||||||
# 4. Final image - runner stage to run the application
|
# 4. Final image - runner stage to run the application
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
|
|||||||
Reference in New Issue
Block a user