python/.devcontainer/Dockerfile aktualisiert
parent
c07dc3fb29
commit
82c3d1c729
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue