mirror of
https://github.com/data-privacy-stack/presidio.git
synced 2026-07-23 11:20:55 -05:00
* Fix dev container permission issues by removing USER directive Removes USER directive from Dockerfile.dev files to fix permission denied errors when accessing bind-mounted workspaces. Dev containers now run as root, which is standard practice for local development environments and matches the original working configuration before PR #1759. Fixes #1782 * Fix dev container permission issues and Poetry 2.0 compatibility - Remove USER directive from Dockerfile.dev files to fix permission errors - Remove poetry shell commands (not available in Poetry 2.0) - Configure VS Code to use Poetry venv automatically Fixes #1782 --------- Co-authored-by: Omri Mendels <omri374@users.noreply.github.com> Co-authored-by: Sharon Hart <sharonh.dev@gmail.com>
21 lines
614 B
Docker
21 lines
614 B
Docker
FROM python:3.12-slim
|
|
|
|
ARG DEV_MODE=dev
|
|
ARG POETRY_EXTRAS=""
|
|
ARG NLP_CONF_FILE=presidio_analyzer/conf/default.yaml
|
|
ARG ANALYZER_CONF_FILE=presidio_analyzer/conf/default_analyzer.yaml
|
|
ARG RECOGNIZER_REGISTRY_CONF_FILE=presidio_analyzer/conf/default_recognizers.yaml
|
|
|
|
ENV DEV_MODE=${DEV_MODE}
|
|
ENV PIP_NO_CACHE_DIR=1
|
|
ENV ANALYZER_CONF_FILE=${ANALYZER_CONF_FILE}
|
|
ENV RECOGNIZER_REGISTRY_CONF_FILE=${RECOGNIZER_REGISTRY_CONF_FILE}
|
|
ENV NLP_CONF_FILE=${NLP_CONF_FILE}
|
|
ENV POETRY_EXTRAS=${POETRY_EXTRAS}
|
|
|
|
# Install essential build tools
|
|
RUN apt-get update \
|
|
&& apt-get install -y build-essential
|
|
|
|
RUN pip install poetry
|