merge Dockerfile

This commit is contained in:
pycook
2019-11-12 10:40:37 +08:00
parent 4b312d4f99
commit 398fbb25dc
4 changed files with 34 additions and 40 deletions

View File

@@ -1,16 +0,0 @@
FROM node:alpine AS builder
LABEL description="cmdb-ui"
COPY . /data/apps/cmdb-ui
WORKDIR /data/apps/cmdb-ui
RUN sed -i "s#http://127.0.0.1:5000##g" .env && yarn install && yarn build
FROM nginx:alpine AS cmdb-ui
RUN mkdir /etc/nginx/html && rm -f /etc/nginx/conf.d/default.conf
COPY --from=builder /data/apps/cmdb-ui/dist /etc/nginx/html/