feat: live module and jenkins pipeline to harbor deploy
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# 本地快速构建 dist 用(CI 上无需此文件)。用法:
|
||||
# docker build -f web/Dockerfile.build --target export -o "type=local,dest=web/dist" web
|
||||
FROM docker.m.daocloud.io/node:20-slim
|
||||
ENV COREPACK_NPM_REGISTRY=https://registry.npmmirror.com
|
||||
ENV npm_config_registry=https://registry.npmmirror.com
|
||||
WORKDIR /app
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
RUN corepack enable && corepack prepare pnpm@10.15.1 --activate && pnpm install --frozen-lockfile
|
||||
COPY . .
|
||||
RUN pnpm build
|
||||
|
||||
FROM scratch AS export
|
||||
COPY --from=0 /app/dist /dist
|
||||
Reference in New Issue
Block a user