docker images use aliyun

This commit is contained in:
pycook
2019-11-13 11:56:17 +08:00
parent 39153e92d1
commit c0c6d116b5
3 changed files with 25 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
# ================================= UI ================================
FROM exiasr/alpine-yarn-nginx AS cmdb-ui
FROM node:alpine AS builder
LABEL description="cmdb-ui"
@@ -7,8 +7,14 @@ COPY ui /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 \
&& mkdir /etc/nginx/html && cp -r dist/* /etc/nginx/html && rm -f /etc/nginx/conf.d/default.conf
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/
# ================================= API ================================