File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1- FROM python:3.7-slim-buster
1+ FROM python:3.7-slim
22
33RUN apt-get update
44RUN apt-get -y install git jq
55
6- COPY entrypoint.sh /action/entrypoint.sh
7- COPY run_action.py /action/run_action.py
8- COPY duplicate_code_detection.py /action/duplicate_code_detection.py
9- COPY requirements.txt /action/requirements.txt
6+ COPY duplicate_code_detection.py requirements.txt run_action.py entrypoint.sh /action/
107
11- RUN pip3 install -r /action/requirements.txt
12- RUN pip3 install requests
13- RUN python3 -c "import nltk; nltk.download('punkt')"
14- # nltk_data ends up in /root so python can't find it
15- RUN ln -s /root/nltk_data /usr/local/nltk_data
8+ RUN pip3 install -r /action/requirements.txt requests && \
9+ python3 -c "import nltk; nltk.download('punkt')" && \
10+ ln -s /root/nltk_data /usr/local/nltk_data
1611
1712ENTRYPOINT ["/action/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments