diff --git a/Dockerfile b/Dockerfile index dceaf2ae9..40757d513 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,10 +30,14 @@ ENV CRAWLAB_IS_DOCKER Y # install packages RUN apt-get update \ - && apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip nginx \ + && apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip nginx wget \ && ln -s /usr/bin/pip3 /usr/local/bin/pip \ && ln -s /usr/bin/python3 /usr/local/bin/python +# install dumb-init +RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 +RUN chmod +x /usr/local/bin/dumb-init + # install backend RUN pip install scrapy pymongo bs4 requests crawlab-sdk scrapy-splash diff --git a/Dockerfile.local b/Dockerfile.local index eb10563d2..240d84e45 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -28,10 +28,14 @@ ENV DEBIAN_FRONTEND noninteractive # install packages RUN chmod 777 /tmp \ && apt-get update \ - && apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip nginx \ + && apt-get install -y curl git net-tools iputils-ping ntp ntpdate python3 python3-pip nginx wget \ && ln -s /usr/bin/pip3 /usr/local/bin/pip \ && ln -s /usr/bin/python3 /usr/local/bin/python +# install dumb-init +RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 +RUN chmod +x /usr/local/bin/dumb-init + # install backend RUN pip install scrapy pymongo bs4 requests crawlab-sdk scrapy-splash -i https://pypi.tuna.tsinghua.edu.cn/simple