Skip to content

Commit f8ee7b7

Browse files
authored
Merge pull request #100 from fcanobrash/issue-74
Use python 3 in Docker image
2 parents db7f0e8 + 978d07d commit f8ee7b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
# > sudo docker run -p 9080:9080 -tid -v ${PROJECT_DIR}:/scrapyrt/project scrapyrt
99
#
1010

11-
FROM ubuntu:14.04
11+
FROM ubuntu:18.04
1212

1313
ENV DEBIAN_FRONTEND noninteractive
1414

1515
RUN apt-get update && \
16-
apt-get install -y python python-dev \
16+
apt-get install -y python3 python3-dev \
1717
libffi-dev libxml2-dev libxslt1-dev zlib1g-dev libssl-dev wget
1818

1919
RUN mkdir -p /scrapyrt/src /scrapyrt/project
2020
RUN mkdir -p /var/log/scrapyrt
2121

2222
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
23+
python3 /tmp/get-pip.py "pip==19.3.1" && \
24+
rm /tmp/get-pip.py
2525

2626
ADD . /scrapyrt/src
2727
RUN pip install /scrapyrt/src

0 commit comments

Comments
 (0)