updated Dockerfile.local

This commit is contained in:
marvzhang
2019-12-30 12:18:01 +08:00
parent 1706112afb
commit b41af912aa

View File

@@ -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