From 9e6bb4afae7fb6371dea4372e99e1d5097739e2c Mon Sep 17 00:00:00 2001 From: mark van tilburg Date: Fri, 2 Feb 2024 15:16:13 +0100 Subject: [PATCH 1/2] Update Dockerfile.windows Upgrade pip ```WARNING: You are using pip version 22.0.4; however, version 23.3.2 is available.``` --- presidio-analyzer/Dockerfile.windows | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/presidio-analyzer/Dockerfile.windows b/presidio-analyzer/Dockerfile.windows index e2af573f6..cb2e24db6 100644 --- a/presidio-analyzer/Dockerfile.windows +++ b/presidio-analyzer/Dockerfile.windows @@ -9,6 +9,7 @@ ADD https://aka.ms/vs/16/release/vc_redist.x64.exe . RUN ./vc_redist.x64.exe /quiet /install COPY ./Pipfile* . +RUN pip install --upgrade pip RUN pip install pipenv; pipenv install --deploy # install nlp models specified in conf/default.yaml @@ -18,4 +19,4 @@ RUN pipenv run python install_nlp_models.py --conf_file $Env:NLP_CONF_FILE COPY . . EXPOSE ${PORT} -CMD pipenv run python app.py --host 0.0.0.0 \ No newline at end of file +CMD pipenv run python app.py --host 0.0.0.0 From b8bd97f8bcea32c0b654c5c5d5ec4159cea94e16 Mon Sep 17 00:00:00 2001 From: mark van tilburg Date: Fri, 2 Feb 2024 15:16:57 +0100 Subject: [PATCH 2/2] Update Dockerfile.windows Upgrade pip --- presidio-anonymizer/Dockerfile.windows | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/presidio-anonymizer/Dockerfile.windows b/presidio-anonymizer/Dockerfile.windows index c9910c3d8..119d2dbcc 100644 --- a/presidio-anonymizer/Dockerfile.windows +++ b/presidio-anonymizer/Dockerfile.windows @@ -5,9 +5,10 @@ ENV PIP_NO_CACHE_DIR=1 WORKDIR /app COPY ./Pipfile* . +RUN pip install --upgrade pip RUN pip install pipenv; pipenv install --deploy COPY . . EXPOSE ${PORT} -CMD pipenv run python app.py \ No newline at end of file +CMD pipenv run python app.py