This commit is contained in:
parent
864085ea4a
commit
d137dfac70
@ -14,10 +14,13 @@ COPY . .
|
|||||||
COPY --from=deps /app ./
|
COPY --from=deps /app ./
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
|
FROM build as pre-release
|
||||||
|
WORKDIR /app
|
||||||
|
RUN pnpm prune --prod --config.ignore-scripts=true
|
||||||
|
|
||||||
FROM node:16-alpine as release
|
FROM node:16-alpine as release
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app ./
|
COPY --from=pre-release /app ./
|
||||||
RUN pnpm prune --prod --config.ignore-scripts=true
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD npm run serve -- -p 80
|
CMD npm run serve -- -p 80
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user