# 使用阿里云镜像 FROM registry.cn-guangzhou.aliyuncs.com/nudt_devops/node:18-alpine LABEL maintainer="hejiayu " WORKDIR /gitlink_help_center # 设置 npm 和 yarn 使用淘宝镜像 RUN npm config set registry https://registry.npmmirror.com RUN yarn config set registry https://registry.npmmirror.com COPY ./ /gitlink_help_center/ RUN yarn install RUN npm run build -- --locale zh-cn CMD ["npm", "run", "serve"]