diff --git a/web/.npmrc b/web/.npmrc new file mode 100644 index 00000000..7f082f23 --- /dev/null +++ b/web/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmmirror.com \ No newline at end of file diff --git a/web/.nvmrc b/web/.nvmrc new file mode 100644 index 00000000..209e3ef4 --- /dev/null +++ b/web/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/web/Dockerfile b/web/Dockerfile index e301f7c8..af37fb1b 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -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