python/.devcontainer/Dockerfile aktualisiert

feature/interestingPoints
Dennis Eggen 2025-10-26 13:30:42 +01:00
parent c07dc3fb29
commit 82c3d1c729
1 changed files with 6 additions and 8 deletions

View File

@ -1,11 +1,9 @@
FROM python:3.11-slim 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 build-essential
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/*
WORKDIR /workspace ARG USERNAME=developer
USER vscode 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