Watch 12 Star 15 Fork 9

magicodes / Magicodes.Admin.UITypeScriptMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Nothing here. spread retract

Clone or download
Dockerfile 390 Bytes
Copy Edit Web IDE Raw Blame History
Stone authored 2019-11-08 12:12 . 修改dockerfile和移除多余文件
# STEP 1: Build
FROM node:11-alpine as builder
RUN mkdir /ng-app
WORKDIR /ng-app
COPY package.json ./
RUN yarn
COPY . .
RUN yarn run publish-dev
# STEP 2: Setup
FROM nginx:1.17.3-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;"]

Comment ( 0 )

Sign in for post a comment

TypeScript
1
https://gitee.com/magicodes/Magicodes.Admin.UI.git
git@gitee.com:magicodes/Magicodes.Admin.UI.git
magicodes
Magicodes.Admin.UI
Magicodes.Admin.UI
master

Help Search