14 lines
397 B
Docker
14 lines
397 B
Docker
FROM python:latest
|
|
RUN apt update && apt install -y bash
|
|
|
|
RUN python -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 python -m nltk.downloader words punkt averaged_perceptron_tagger
|
|
|
|
RUN mkdir /kwaylon
|
|
COPY ./src /kwaylon
|
|
WORKDIR /kwaylon
|
|
CMD [ "python", "main.py" ]
|