diff --git a/python/.devcontainer/Dockerfile b/python/.devcontainer/Dockerfile index ce6f0fe..d6ae24d 100644 --- a/python/.devcontainer/Dockerfile +++ b/python/.devcontainer/Dockerfile @@ -1,11 +1,9 @@ FROM python:3.11-slim -# Benutzer 'vscode' mit UID/GID 1000 anlegen (standardmäßig für VS Code Dev Container) -RUN apt-get update && apt-get install -y --no-install-recommends \ - git \ - curl \ - && useradd -m -u 1000 -g 1000 vscode \ - && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y build-essential -WORKDIR /workspace -USER vscode +ARG USERNAME=developer +ARG USER_UID=1000 +ARG USER_GID=$USER_UID +RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME +USER $USERNAME