Remove package-lock.json and remove some compile warnings

This commit is contained in:
pycook
2019-11-11 13:15:21 +08:00
parent 50f894a01d
commit 5f2a0d1a7b
7 changed files with 64 additions and 19700 deletions

View File

@@ -6,13 +6,11 @@ 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
RUN sed -i "s#http://127.0.0.1:5000##g" .env && yarn install && yarn build
FROM nginx:latest
FROM nginx:alpine
RUN apt-get update && apt-get install -y curl && apt-get clean
RUN mkdir /etc/nginx/html
RUN mkdir /etc/nginx/html && rm -f /etc/nginx/conf.d/default.conf
COPY --from=builder /data/apps/cmdb-ui/dist /etc/nginx/html/