explicitly calling python3 from docker
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
FROM python:latest
|
||||
RUN apt update && apt install -y bash
|
||||
|
||||
RUN python -m pip install --upgrade pip
|
||||
RUN python3 -m pip install --upgrade pip
|
||||
COPY ./requirements.txt ./requirements.txt
|
||||
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip python -m pip install -r ./requirements.txt
|
||||
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip python3 -m pip install -r ./requirements.txt
|
||||
|
||||
RUN python -m nltk.downloader words punkt averaged_perceptron_tagger
|
||||
RUN python3 -m nltk.downloader words punkt averaged_perceptron_tagger
|
||||
|
||||
RUN mkdir /kwaylon
|
||||
COPY ./src /kwaylon
|
||||
WORKDIR /kwaylon
|
||||
CMD [ "python", "main.py" ]
|
||||
|
||||
Reference in New Issue
Block a user