Skip to content

Commit aee1c6f

Browse files
committed
Dockerfile: use recent Python
1 parent 2e605ce commit aee1c6f

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

Dockerfile

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
#
22
# To build:
3-
# > sudo docker build -t scrapyrt .
3+
# > docker build -t scrapyrt .
44
#
55
# to start as daemon with port 9080 of api exposed as 9080 on host
66
# and host's directory ${PROJECT_DIR} mounted as /scrapyrt/project
77
#
8-
# > sudo docker run -p 9080:9080 -tid -v ${PROJECT_DIR}:/scrapyrt/project scrapyrt
8+
# > docker run -p 9080:9080 -tid -v ${PROJECT_DIR}:/scrapyrt/project scrapyrt
99
#
1010

11-
FROM ubuntu:18.04
12-
13-
ENV DEBIAN_FRONTEND noninteractive
14-
15-
RUN apt-get update && \
16-
apt-get install -y python3 python3-dev \
17-
libffi-dev libxml2-dev libxslt1-dev zlib1g-dev libssl-dev wget
11+
FROM python:3.10-slim-buster
1812

1913
RUN mkdir -p /scrapyrt/src /scrapyrt/project
2014
RUN mkdir -p /var/log/scrapyrt
2115

22-
RUN wget -O /tmp/get-pip.py "https://bootstrap.pypa.io/get-pip.py" && \
23-
python3 /tmp/get-pip.py "pip==19.3.1" && \
24-
rm /tmp/get-pip.py
25-
2616
ADD . /scrapyrt/src
2717
RUN pip install /scrapyrt/src
2818

0 commit comments

Comments
 (0)