16 lines
452 B
Docker
16 lines
452 B
Docker
FROM python:latest
|
|
RUN apt update && apt install -y bash
|
|
|
|
RUN python3 -m pip install --upgrade pip
|
|
|
|
RUN mkdir -p /kwaylon/src
|
|
WORKDIR /kwaylon
|
|
COPY ./requirements.txt ./requirements.txt
|
|
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip python3 -m pip install -r ./requirements.txt
|
|
|
|
RUN python3 -m nltk.downloader words punkt averaged_perceptron_tagger
|
|
|
|
COPY ./src /kwaylon/src
|
|
COPY pyproject.toml /kwaylon
|
|
RUN python3 -m pip install -e /kwaylon
|