1 Star 0 Fork 17

person5689 / Magicodes.Admin.UI

forked from magicodes / Magicodes.Admin.UI 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Pro.Dockerfile 620 Bytes
一键复制 编辑 原始数据 按行查看 历史
显瘦 提交于 2019-07-01 14:22 . 初始化框架
# STEP 1: Build
FROM node:8-alpine as builder
COPY package.json package-lock.json ./
RUN npm config set registry https://registry.npm.taobao.org && npm set progress=false && npm config set depth 0 && npm cache clean --force
RUN npm i && mkdir /ng-app && cp -R ./node_modules ./ng-app
WORKDIR /ng-app
COPY . .
#内存溢出
#RUN npm run fix-memory-limit
RUN npm run publish-pro
# STEP 2: Setup
FROM nginx:1.13.5-alpine
COPY --from=builder /ng-app/_nginx/default.conf /etc/nginx/conf.d/
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /ng-app/dist /usr/share/nginx/html
CMD [ "nginx", "-g", "daemon off;"]
TypeScript
1
https://gitee.com/person5689/Magicodes.Admin.UI.git
git@gitee.com:person5689/Magicodes.Admin.UI.git
person5689
Magicodes.Admin.UI
Magicodes.Admin.UI
master

搜索帮助