Explorar el Código

U 文档 更新dockerfile文件

张玉坡 hace 7 años
padre
commit
443b9ce298
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      docs/Dockerfile/Dockerfile

+ 1 - 2
docs/Dockerfile/Dockerfile

@@ -9,8 +9,7 @@ RUN apk add --no-cache --virtual .build-deps python3-dev gcc musl-dev libffi-dev
     && apk del .build-deps 
 RUN cd /spug/spug_web/ && npm i -d --registry=https://registry.npm.taobao.org \
     && npm run build \
-    && mv /var/lib/nginx/html /var/lib/nginx/html.bak && mv /spug/spug_web/dist /var/lib/nginx/html \
-    && rm -rf /spug/spug_web
+    && mv /var/lib/nginx/html /var/lib/nginx/html.bak && mv /spug/spug_web/dist /var/lib/nginx/html 
 	
 ADD default.conf /etc/nginx/conf.d/default.conf
 ADD entrypoint.sh /entrypoint.sh