feat : 调整web服务基础镜像源

This commit is contained in:
翟二远 2026-04-07 18:07:29 +08:00
parent dddb89fd43
commit 64fc2c3a9e
3 changed files with 4 additions and 2 deletions

1
web/.npmrc Normal file
View file

@ -0,0 +1 @@
registry=https://registry.npmmirror.com

1
web/.nvmrc Normal file
View file

@ -0,0 +1 @@
20

View file

@ -1,4 +1,4 @@
FROM node:22-alpine AS build
FROM jsessh-registry.cn-shanghai.cr.aliyuncs.com/base-images/node:22-alpine AS build
RUN corepack enable
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
@ -6,7 +6,7 @@ RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
FROM nginx:alpine
FROM jsessh-registry.cn-shanghai.cr.aliyuncs.com/base-images/nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY --from=build /app/src/docs/skill.md.template /usr/share/nginx/html/registry/skill.md.template
COPY nginx.conf.template /etc/nginx/templates/default.conf.template