File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 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
1913RUN mkdir -p /scrapyrt/src /scrapyrt/project
2014RUN 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-
2616ADD . /scrapyrt/src
2717RUN pip install /scrapyrt/src
2818
You can’t perform that action at this time.
0 commit comments