FROM python:3.7 RUN mkdir -p /usr/src/app/ COPY pip.conf /root/.pip/ COPY . /usr/src/app/ RUN pip install --upgrade pip RUN pip install -r /usr/src/app/requirements.txt WORKDIR /usr/src/app/ COPY sources.list /etc/apt/ COPY config /etc/privoxy/ RUN apt-get update \ && apt-get install privoxy \ && /etc/init.d/privoxy start CMD ["sh", "./run.sh"]