From 08952e074ecfbfb9c44d8881222ea759ee8fd12a Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Thu, 14 Aug 2025 14:05:58 +0800 Subject: [PATCH] added `adduser` command to Jupyter Python image --- jupyter-python/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyter-python/Dockerfile b/jupyter-python/Dockerfile index 17bab50..8b804a6 100644 --- a/jupyter-python/Dockerfile +++ b/jupyter-python/Dockerfile @@ -2,7 +2,7 @@ FROM debian:stable AS build RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ apt update &&\ - apt install -y python3 python3-dev pipx gcc g++ libffi-dev cargo cmake autoconf swig ninja-build patchelf meson python3-faiss + apt install -y python3 python3-dev pipx gcc g++ libffi-dev cargo cmake autoconf swig ninja-build patchelf meson python3-faiss adduser RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan USER jovyan WORKDIR /home/jovyan @@ -29,7 +29,7 @@ FROM debian:stable RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ apt update &&\ - apt install -y python3 + apt install -y python3 adduser RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan USER jovyan COPY --from=build /home/jovyan /home/jovyan