1 Star 0 Fork 0

wu_kaka / rap2-dolores

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 588 Bytes
一键复制 编辑 原始数据 按行查看 历史
bigfengyu 提交于 2019-10-31 22:44 . fix: Dockerfile 拿掉 node-sass
# BUILDING
FROM node:lts-alpine AS builder
WORKDIR /app
COPY . ./
# 替换后端端口地址配置文件
COPY docker/config.prod.ts ./src/config/config.prod.ts
# 在国内打开下面一行加速
#RUN npm config set registry https://registry.npm.taobao.org/ && npm config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
RUN npm install && \
npm install typescript -g && \
npm run lint && \
npm run build
# nginx
FROM nginx:stable-alpine
COPY --from=builder app/build /dolores
RUN rm /etc/nginx/conf.d/default.conf
COPY docker/nginx.conf /etc/nginx/conf.d/
1
https://gitee.com/wukaiquan/rap2-dolores.git
git@gitee.com:wukaiquan/rap2-dolores.git
wukaiquan
rap2-dolores
rap2-dolores
master

搜索帮助