This commit is contained in:
pycook
2019-11-11 00:25:22 +08:00
parent 08c96039e9
commit 58ad9d3f05
12 changed files with 42 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:3.9 as builder
FROM node:alpine as builder
LABEL description="cmdb-ui"
@@ -6,7 +6,7 @@ COPY . /data/apps/cmdb-ui
WORKDIR /data/apps/cmdb-ui
RUN apk add yarn && yarn install && sed -i 's#http://127.0.0.1:5000##g' .env && yarn build
RUN sed -i 's#http://127.0.0.1:5000##g' .env && yarn install && yarn build
FROM nginx:latest