You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitlink_help_center/Dockerfile

15 lines
442 B

# 使用阿里云镜像
FROM registry.cn-guangzhou.aliyuncs.com/nudt_devops/node:18-alpine
LABEL maintainer="hejiayu <hejy47@nudt.edu.cn>"
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"]