U 文档 更新dockerfile文件

pull/11/head
张玉坡 2018-03-06 18:46:10 +08:00
parent 0026624c9d
commit 443b9ce298
1 changed files with 1 additions and 2 deletions

View File

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