Skip to content

Commit

Permalink
Dockerfile: use recent Python
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelmhm committed Dec 28, 2021
1 parent 2e605ce commit aee1c6f
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
#
# To build:
# > sudo docker build -t scrapyrt .
# > docker build -t scrapyrt .
#
# to start as daemon with port 9080 of api exposed as 9080 on host
# and host's directory ${PROJECT_DIR} mounted as /scrapyrt/project
#
# > sudo docker run -p 9080:9080 -tid -v ${PROJECT_DIR}:/scrapyrt/project scrapyrt
# > docker run -p 9080:9080 -tid -v ${PROJECT_DIR}:/scrapyrt/project scrapyrt
#

FROM ubuntu:18.04

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
apt-get install -y python3 python3-dev \
libffi-dev libxml2-dev libxslt1-dev zlib1g-dev libssl-dev wget
FROM python:3.10-slim-buster

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" && \
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 aee1c6f

Please sign in to comment.