From ad3d25bc64fd4fb3a545ab2d865b04418cf97b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Daems?= <73901882+chloedia@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:11:03 +0100 Subject: [PATCH] fix: Dockerfile (#192) --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 121147e..7c4baac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,10 +34,8 @@ COPY libs/megaparse_sdk/pyproject.toml libs/megaparse_sdk/README.md libs/megapar RUN pip install uv RUN uv pip install --no-cache --system -r requirements.lock -RUN playwright install --with-deps && \ - python -c "from unstructured.nlp.tokenize import download_nltk_packages; download_nltk_packages()" && \ - python -c "import nltk;nltk.download('punkt_tab'); nltk.download('averaged_perceptron_tagger_eng')" && \ - python -c "from unstructured.partition.model_init import initialize; initialize()" +RUN playwright install --with-deps +RUN python3 - -m nltk.downloader all COPY . .