소스 검색

dockerfile

wangliang 2 달 전
부모
커밋
a164238c04
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      nginx/sop-web/Dockerfile

+ 2 - 2
nginx/sop-web/Dockerfile

@@ -8,13 +8,13 @@ RUN npm config set registry http://registry.cnpmjs.org && npm config set registr
 RUN npm install
 RUN NODE_OPTIONS=--max_old_space_size=4096 npm run build
 
-FROM nginx AS production-stage
+FROM nginx:1.17.3 AS production-stage
 ENV TZ Asia/Shanghai
 MAINTAINER wangliang@qmth.com.cn
 
 WORKDIR /opt
 ARG CONF_NAME
-RUN rm /etc/nginx/conf.d/default.conf
+#RUN rm /etc/nginx/conf.d/default.conf
 COPY --from=build-stage /app/dist /opt/dist
 COPY ./$CONF_NAME /etc/nginx/conf.d/$CONF_NAME