File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed
Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change 1- ARG BASE_IMAGE=quay.io/jupyter/minimal-notebook:2025-07-07
1+ ARG BASE_IMAGE=quay.io/jupyter/minimal-notebook:latest
22
33FROM ${BASE_IMAGE} AS notebook-image
44
@@ -14,6 +14,7 @@ RUN apt-get update && \
1414 locales \
1515 sudo \
1616 rclone \
17+ vim \
1718 && rm -rf /var/lib/apt/lists/*
1819
1920# Generate the desired locale (en_US.UTF-8)
@@ -24,18 +25,6 @@ ENV LANG=en_US.UTF-8
2425ENV LANGUAGE=en_US.UTF-8
2526ENV LC_ALL=en_US.UTF-8
2627
27- # Remove the `jovyan` user and add a user `coder` so that you're not developing as the `root` user
28- RUN userdel -r ${NB_USER} \
29- && useradd coder \
30- --create-home \
31- --shell=/bin/bash \
32- --uid=1000 \
33- --user-group \
34- && echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd \
35- && chown -R coder:coder /home/coder
36-
37- # Switch to coder user, override env vars from Jupyter base image
38- USER coder
39- WORKDIR /home/coder
40- ENV HOME=/home/coder
41- ENV NB_USER=coder
28+ ARG NB_USER=jovyan
29+ RUN usermod -aG sudo "${NB_USER}" && \
30+ echo "%sudo ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/99-nopasswd
You can’t perform that action at this time.
0 commit comments