1 Star 0 Fork 0

John Zhang / your-angular-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 660 Bytes
一键复制 编辑 原始数据 按行查看 历史
John Zhang 提交于 2018-07-23 15:42 . 初始化ng-alain
# STEP 1: Build
FROM node:8-alpine as builder
LABEL authors="cipchk <cipchk@qq.com>"
COPY package.json package-lock.json ./
RUN npm set progress=false && npm config set depth 0 && npm cache clean --force
RUN npm i && mkdir /ng-alain && cp -R ./node_modules ./ng-alain
WORKDIR /ng-alain
COPY . .
RUN npm run build
# STEP 2: Setup
FROM nginx:1.13.5-alpine
COPY --from=builder /ng-alain/_nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /ng-alain/_nginx/ssl/* /etc/nginx/ssl/
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /ng-alain/dist /usr/share/nginx/html
CMD [ "nginx", "-g", "daemon off;"]
1
https://gitee.com/millinch/your-angular-admin.git
git@gitee.com:millinch/your-angular-admin.git
millinch
your-angular-admin
your-angular-admin
master

搜索帮助