Skip to content

Commit 4e429d0

Browse files
committed
Attempting fix for running on jupyterhub
1 parent 9485776 commit 4e429d0

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

images/jupyter/Dockerfile

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE=quay.io/jupyter/minimal-notebook:2025-07-07
1+
ARG BASE_IMAGE=quay.io/jupyter/minimal-notebook:latest
22

33
FROM ${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
2425
ENV LANGUAGE=en_US.UTF-8
2526
ENV 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

0 commit comments

Comments
 (0)