From eba186788815de371d08841427db200d472ce8b3 Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Wed, 1 Jul 2026 04:54:57 +0000 Subject: [PATCH] Add Presidio detector Dockerfile --- presidio/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 presidio/Dockerfile diff --git a/presidio/Dockerfile b/presidio/Dockerfile new file mode 100644 index 0000000..b189353 --- /dev/null +++ b/presidio/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.12-slim + +WORKDIR /app + +RUN pip install --no-cache-dir \ + presidio-analyzer \ + "spacy>=3.7" \ + fastapi \ + uvicorn \ + pydantic + +# Traditional/Simplified Chinese model for PERSON detection. +# For stronger zh-TW name recall you would swap/augment this in a real engagement. +RUN python -m spacy download zh_core_web_lg + +COPY app.py . + +EXPOSE 5001 +CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5001"]