Skip to content

Commit

Permalink
Merge pull request #100 from fcanobrash/issue-74
Browse files Browse the repository at this point in the history
Use python 3 in Docker image
  • Loading branch information
pawelmhm authored Dec 9, 2019
2 parents db7f0e8 + 978d07d commit f8ee7b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
# > sudo docker run -p 9080:9080 -tid -v ${PROJECT_DIR}:/scrapyrt/project scrapyrt
#

FROM ubuntu:14.04
FROM ubuntu:18.04

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
apt-get install -y python python-dev \
apt-get install -y python3 python3-dev \
libffi-dev libxml2-dev libxslt1-dev zlib1g-dev libssl-dev wget

RUN mkdir -p /scrapyrt/src /scrapyrt/project
RUN mkdir -p /var/log/scrapyrt

RUN wget -O /tmp/get-pip.py "https://bootstrap.pypa.io/get-pip.py" && \
python /tmp/get-pip.py "pip==9.0.1" && \
rm /tmp/get-pip.py
python3 /tmp/get-pip.py "pip==19.3.1" && \
rm /tmp/get-pip.py

ADD . /scrapyrt/src
RUN pip install /scrapyrt/src
Expand Down

0 comments on commit f8ee7b7

Please sign in to comment.