From 82199129a1c7e20c7969efcc7e1bddad447a7b7d Mon Sep 17 00:00:00 2001 From: marvzhang Date: Tue, 7 Jan 2020 15:30:20 +0800 Subject: [PATCH] fixed docker build error --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73883c64..100f5ac6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ WORKDIR /app # install frontend RUN npm config set unsafe-perm true -RUN npm install -g yarn && yarn install --registry=https://registry.npm.taobao.org # --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ +RUN npm install -g yarn && yarn install RUN npm run build:prod @@ -37,7 +37,7 @@ RUN apt-get update \ && ln -s /usr/bin/python3 /usr/local/bin/python # install backend -RUN pip install scrapy pymongo bs4 requests -i https://pypi.tuna.tsinghua.edu.cn/simple +RUN pip install scrapy pymongo bs4 requests # copy backend files COPY --from=backend-build /go/bin/crawlab /usr/local/bin