U - update dockerfile

1.x
张玉坡 2019-10-28 07:58:47 +08:00
parent dc642d284a
commit d63e2f691a
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ &&
&& pip install --no-cache-dir gunicorn \
&& apk del .build-deps
RUN cd /spug/spug_web/ && npm i && npm run build \
RUN cd /spug/spug_web/ && npm i --registry=https://registry.npm.taobao.org && npm run build \
&& mv /spug/spug_web/dist /var/www/
ADD default.conf /etc/nginx/conf.d/default.conf