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