Skip to content

Commit

Permalink
Updates Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fcanobrash committed Dec 6, 2019
1 parent 0f9d9bc commit 978d07d
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 978d07d

Please sign in to comment.