/ 环境配置
分类:环境配置来源:站内 最近更新:2021-12-06 20:28:14浏览:918留言:3
配置Dockerfile文件
FROM node:12.14.0-alpine3.10 as builder WORKDIR /var/html COPY package.json . COPY src/ ./src COPY config/ ./config COPY app.config.js . COPY .eslintrc.js . RUN set -ex ; npm install --registry=https://registry.npm.taobao.org \ && npm run build FROM nginx as webshow WORKDIR /var/web COPY --from=builder /var/html/dist . COPY test.conf /etc/nginx/conf.d/ EXPOSE 8081
下一篇:彻底搞懂ESLint