From b41af912aa47374dc1fa9763fcb57fbaee7f5ada Mon Sep 17 00:00:00 2001 From: marvzhang Date: Mon, 30 Dec 2019 12:18:01 +0800 Subject: [PATCH] updated Dockerfile.local --- Dockerfile.local | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile.local b/Dockerfile.local index cbc5c65d..e19d670c 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -28,19 +28,19 @@ ADD . /app ENV DEBIAN_FRONTEND noninteractive # install packages -RUN apt-get update \ - && apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip \ - && ln -s /usr/bin/pip3 /usr/local/bin/pip \ - && ln -s /usr/bin/python3 /usr/local/bin/python +RUN sudo apt-get update \ + && sudo apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip \ + && sudo ln -s /usr/bin/pip3 /usr/local/bin/pip \ + && sudo 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 sudo pip install scrapy pymongo bs4 requests -i https://pypi.tuna.tsinghua.edu.cn/simple # copy backend files COPY --from=backend-build /go/bin/crawlab /usr/local/bin # install nginx -RUN apt-get -y install nginx +RUN sudo apt-get -y install nginx # copy frontend files COPY --from=frontend-build /app/dist /app/dist