explicitly calling python3 from docker
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
FROM python:latest
|
FROM python:latest
|
||||||
RUN apt update && apt install -y bash
|
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
|
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
|
RUN mkdir /kwaylon
|
||||||
COPY ./src /kwaylon
|
COPY ./src /kwaylon
|
||||||
WORKDIR /kwaylon
|
WORKDIR /kwaylon
|
||||||
CMD [ "python", "main.py" ]
|
|
||||||
|
|||||||
@@ -14,3 +14,4 @@ services:
|
|||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- ./:/kwaylon
|
- ./:/kwaylon
|
||||||
|
command: ["python3", "src/main.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user