fixed the nltk download in the docker files
This commit is contained in:
@@ -8,7 +8,7 @@ python3 python3-pip python3-dev
|
|||||||
COPY ./requirements.txt ./requirements.txt
|
COPY ./requirements.txt ./requirements.txt
|
||||||
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r ./requirements.txt
|
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r ./requirements.txt
|
||||||
|
|
||||||
RUN python3 -m nltk.downloader words
|
RUN python -m nltk.downloader words punkt averaged_perceptron_tagger
|
||||||
|
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
CMD [ "python", "./src/main.py" ]
|
CMD [ "python", "./src/main.py" ]
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ RUN apt update && apt install -y libblas-dev liblapack-dev
|
|||||||
COPY --from=build-image /root/venv /root/venv
|
COPY --from=build-image /root/venv /root/venv
|
||||||
ENV PATH="/root/venv/bin:$PATH"
|
ENV PATH="/root/venv/bin:$PATH"
|
||||||
|
|
||||||
RUN python -m nltk.downloader words
|
RUN python -m nltk.downloader words punkt averaged_perceptron_tagger
|
||||||
|
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
CMD [ "python", "./src/main.py" ]
|
CMD [ "python", "./src/main.py" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user