From 82c3d1c729345d5ab61c62c06945c27a34308fd1 Mon Sep 17 00:00:00 2001 From: Dennis Eggen <3019773@stud.hs-mannheim.de> Date: Sun, 26 Oct 2025 13:30:42 +0100 Subject: [PATCH] python/.devcontainer/Dockerfile aktualisiert --- python/.devcontainer/Dockerfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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