From a71a99280532e6742854d0e43e37393b0cec98f0 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Mon, 30 Dec 2019 12:22:36 +0800 Subject: [PATCH] updated Dockerfile.local --- Dockerfile.local | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile.local b/Dockerfile.local index e19d670c..d99010a4 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -28,19 +28,20 @@ ADD . /app ENV DEBIAN_FRONTEND noninteractive # install packages -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 +RUN chmod 777 /tmp \ + && 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 # install backend -RUN sudo pip install scrapy pymongo bs4 requests -i https://pypi.tuna.tsinghua.edu.cn/simple +RUN 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 sudo apt-get -y install nginx +RUN apt-get -y install nginx # copy frontend files COPY --from=frontend-build /app/dist /app/dist