Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile for Windows containers #1194

Merged
merged 4 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions presidio-analyzer/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM python:3.9-windowsservercore

ARG NLP_CONF_FILE=conf/default.yaml
ENV PIPENV_VENV_IN_PROJECT=1
ENV PIP_NO_CACHE_DIR=1
WORKDIR /app

ADD https://aka.ms/vs/16/release/vc_redist.x64.exe .
RUN ./vc_redist.x64.exe /quiet /install

COPY ./Pipfile* .
RUN pip install pipenv; pipenv install --deploy

# install nlp models specified in conf/default.yaml
COPY ./install_nlp_models.py .
COPY ${NLP_CONF_FILE} ${NLP_CONF_FILE}
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
13 changes: 13 additions & 0 deletions presidio-anonymizer/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.9-windowsservercore

ENV PIPENV_VENV_IN_PROJECT=1
ENV PIP_NO_CACHE_DIR=1
WORKDIR /app

COPY ./Pipfile* .
RUN pip install pipenv; pipenv install --deploy

COPY . .

EXPOSE ${PORT}
CMD pipenv run python app.py