update: docker-compose 优化

This commit is contained in:
SliverHorn
2021-06-10 22:05:14 +08:00
parent 9b47c8f57c
commit 8516dbbcaf
10 changed files with 10 additions and 252 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM node:12.16.1
WORKDIR /gva_web/
COPY . .
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
RUN cnpm install || npm install
RUN npm run build
FROM nginx:alpine
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
COPY .docker-compose/nginx/conf.d/my.conf /etc/nginx/conf.d/my.conf
COPY --from=0 /gva_web/dist /usr/share/nginx/html
RUN cat /etc/nginx/nginx.conf
RUN cat /etc/nginx/conf.d/my.conf
RUN ls -al /usr/share/nginx/html