File tree 2 files changed +10
-8
lines changed 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ ENV PYTHONPATH $PYTHONPATH:/app
7
7
COPY requirements.txt /app/requirements.txt
8
8
9
9
RUN apk --update add gcc git musl-dev libxml2-dev libxslt-dev libffi-dev openssl-dev \
10
- && pip install --upgrade setuptools pip \
11
- && pip install --no-cache-dir --requirement /app/requirements.txt \
12
- && pip install --no-cache-dir Scrapy==0.24.6 \
10
+ && pip install --cache-dir=/tmp/pipcache --upgrade setuptools pip \
11
+ && pip install --cache-dir=/tmp/pipcache --requirement /app/requirements.txt \
12
+ && pip install --cache-dir=/tmp/pipcache Scrapy==0.24.6 \
13
+ && rm -r /tmp/pipcache \
13
14
&& apk del gcc git musl-dev \
14
15
&& rm /var/cache/apk/*
15
16
Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ FROM python:2.7-alpine
3
3
COPY requirements-global-scrapyd.txt /requirements-global-scrapyd.txt
4
4
5
5
RUN apk --update add gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-dev \
6
- && pip install --upgrade setuptools pip \
7
- && pip install --no-use-pep517 --no-cache-dir -r requirements-global-scrapyd.txt \
8
- && pip install --no-cache-dir Scrapy==0.24.6 \
9
- && pip install --no-cache-dir scrapyd==1.0.1 \
6
+ && pip install --cache-dir=/tmp/pipcache --upgrade setuptools pip \
7
+ && pip install --cache-dir=/tmp/pipcache -r requirements-global-scrapyd.txt \
8
+ && pip install --cache-dir=/tmp/pipcache Scrapy==0.24.6 \
9
+ && pip install --cache-dir=/tmp/pipcache scrapyd==1.0.1 \
10
+ && rm -r /tmp/pipcache \
10
11
&& apk del gcc musl-dev \
11
- && rm /var/cache/apk/*
12
+ && rm /var/cache/apk/*
12
13
13
14
COPY scrapyd.config /etc/scrapyd/conf.d/100-hyphe
14
15
You can’t perform that action at this time.
0 commit comments