Dockerfile 355 B

12345678910111213
  1. FROM harbor.meetsocial.cn/library/nginx:v1
  2. #以下都需要根据实际情况替换
  3. ENV SERVICE_NAME=sino-mark-client
  4. RUN mkdir /services/websites/${SERVICE_NAME}
  5. # RUN npm install --registry=https://registry.npm.taobao.org && npm run build:${env.RUN_ENV}
  6. COPY ./dist /services/websites/${SERVICE_NAME}
  7. EXPOSE 9527
  8. CMD ["nginx", "-g", "daemon off;"]