From 3a3ab83c9a7b484a9beea365d975eb5fd44ff4f1 Mon Sep 17 00:00:00 2001 From: mark van tilburg Date: Tue, 26 Nov 2024 13:31:27 +0100 Subject: [PATCH] Update Dockerfile.windows Update to Python 3.12 --- presidio-analyzer/Dockerfile.windows | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/presidio-analyzer/Dockerfile.windows b/presidio-analyzer/Dockerfile.windows index f45c20d3a..c2f988116 100644 --- a/presidio-analyzer/Dockerfile.windows +++ b/presidio-analyzer/Dockerfile.windows @@ -1,4 +1,4 @@ -FROM python:3.9-windowsservercore +FROM python:3.12-windowsservercore-ltsc2022 ARG NLP_CONF_FILE=presidio_analyzer/conf/default.yaml ARG ANALYZER_CONF_FILE=presidio_analyzer/conf/default_analyzer.yaml @@ -19,8 +19,11 @@ RUN ./vc_redist.x64.exe /quiet /install COPY ./pyproject.toml /app/pyproject.toml COPY ./README.md /usr/bin/${NAME}/ -RUN pip install --upgrade pip -RUN pip install poetry; poetry install --no-root --only=main -E server -E transformers +WORKDIR /Python +RUN python.exe -m pip install --upgrade pip +RUN pip install poetry; +WORKDIR /app +RUN poetry install --no-root --only=main -E server -E transformers # install nlp models specified in NLP_CONF_FILE COPY ./install_nlp_models.py .