Files
presidio/presidio-anonymizer/Dockerfile.windows
dependabot[bot] 42bfb19d69 build(deps): bump python in /presidio-anonymizer (#1927)
Bumps python from 3.13-windowsservercore to 3.15.0a7-windowsservercore.

---
updated-dependencies:
- dependency-name: python
  dependency-version: 3.15.0a7-windowsservercore
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-02 12:46:38 +03:00

22 lines
738 B
Docker

FROM python:3.15.0a7-windowsservercore@sha256:bf5eecb15cab77f65e67442e1b1ada6d1e38444962eb30b7604b3b979c609a18
ENV PIP_NO_CACHE_DIR=1
ENV POETRY_VIRTUALENVS_CREATE=false
ENV PORT=3000
WORKDIR /app
COPY ./pyproject.toml /app/
RUN pip install poetry==2.3.2; poetry install --no-root --only=main -E server
COPY . /app/
# Create a non-root user for Windows container
RUN net user presidio /add
USER presidio
EXPOSE ${PORT}
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
CMD powershell -Command "try { Invoke-WebRequest -Uri http://localhost:$env:PORT/health -UseBasicParsing | Out-Null; exit 0 } catch { exit 1 }"
CMD ["powershell", "-Command", "poetry run waitress-serve --port=$env:PORT app:create_app"]