diff --git a/Dockerfile b/Dockerfile index 280f8b07..c38bf89b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ -FROM python:3.6 +FROM python:3.6-alpine WORKDIR /app COPY . . # RUN pip install -r requirements.txt -i https://pypi.douban.com/simple -RUN pip install -r requirements.txt +RUN apk add --no-cache libxml2-dev libxslt-dev gcc musl-dev && \ +pip install -r requirements.txt && \ +apk del gcc musl-dev libxml2-dev VOLUME ["/app/proxypool/crawlers/private"] CMD ["supervisord", "-c", "supervisord.conf"]