diff --git a/presidio-anonymizer/Dockerfile.windows b/presidio-anonymizer/Dockerfile.windows index 3cf05b3cc..e2fa2ef8c 100644 --- a/presidio-anonymizer/Dockerfile.windows +++ b/presidio-anonymizer/Dockerfile.windows @@ -1,4 +1,4 @@ -FROM python:3.9-windowsservercore +FROM python:3.12-windowsservercore-ltsc2022 ENV PIP_NO_CACHE_DIR=1 WORKDIR /app @@ -6,9 +6,11 @@ WORKDIR /app COPY ./pyproject.toml /usr/bin/${NAME}/ COPY ./README.md /usr/bin/${NAME}/ COPY ./pyproject.toml /app/pyproject.toml -RUN pip install --upgrade pip -RUN pip install poetry; poetry install --no-root --only=main -E server - +WORKDIR /Python +RUN python.exe -m pip install --upgrade pip +RUN python.exe -m pip install poetry; +WORKDIR /app +RUN poetry install --no-root --only=main -E server COPY . . EXPOSE ${PORT}