Skip to content

Commit 6441ee8

Browse files
authored
Merge pull request #54 from scrapinghub/fix-docker-again
Build ScrapyRT Docker image with sources from version control
2 parents c08a046 + 2f23dbc commit 6441ee8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ testing_scripts*
2828
# tests
2929
.coverage
3030
/.tox/
31+
/.cache/
3132

3233

3334
# sphinx

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ RUN apt-get update && \
1919
RUN mkdir -p /scrapyrt/src /scrapyrt/project
2020
RUN mkdir -p /var/log/scrapyrt
2121

22-
RUN wget "https://bootstrap.pypa.io/get-pip.py"
23-
RUN python get-pip.py
24-
RUN pip install scrapyrt
22+
RUN wget -O /tmp/get-pip.py "https://bootstrap.pypa.io/get-pip.py" && \
23+
python /tmp/get-pip.py "pip==9.0.1" && \
24+
rm /tmp/get-pip.py
25+
26+
ADD . /scrapyrt/src
27+
RUN pip install /scrapyrt/src
2528

2629
WORKDIR /scrapyrt/project
2730

0 commit comments

Comments
 (0)