Skip to content

Commit 375953b

Browse files
authored
Add Dockerfile for container required by github actions
Signed-off-by: GitHub <[email protected]>
1 parent 0859c3a commit 375953b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM python:3.8-slim-buster
2+
3+
WORKDIR /action/workspace
4+
COPY requirements.txt crawler.py /action/workspace/
5+
6+
RUN python3 -m pip install --no-cache-dir -r requirements.txt \
7+
&& apt-get -y update \
8+
&& apt-get -y install --no-install-recommends git \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
CMD ["/action/workspace/crawler.py"]
12+
ENTRYPOINT ["python3", "-u"]
13+
14+
# To run ineractive debug on the docker container
15+
# 1. Comment out the above CMD and ENTRYPOINT lines
16+
# 2. Uncomment the ENTRYPOINT line below
17+
18+
#ENTRYPOINT ["bash"]

0 commit comments

Comments
 (0)