build: 支持构建并上传网页到景安虚机。x3.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Ivan Li 2023-02-27 00:07:48 +08:00
parent 864085ea4a
commit d137dfac70

View File

@ -14,10 +14,13 @@ COPY . .
COPY --from=deps /app ./
RUN pnpm build
FROM build as pre-release
WORKDIR /app
RUN pnpm prune --prod --config.ignore-scripts=true
FROM node:16-alpine as release
WORKDIR /app
COPY --from=build /app ./
RUN pnpm prune --prod --config.ignore-scripts=true
COPY --from=pre-release /app ./
EXPOSE 80
CMD npm run serve -- -p 80