Skip to content

Commit 9bc4adb

Browse files
eeholmesgithub-actions[bot]
authored andcommitted
Update base-image Dockerfile
1 parent 87928ce commit 9bc4adb

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

base-image/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22
# Dockerfile for base image of all pangeo images
3-
FROM ubuntu:22.04
3+
FROM ubuntu:24.04
44
# build file for pangeo images
55

66
LABEL org.opencontainers.image.source=https://github.com/pangeo-data/pangeo-docker-images
@@ -39,10 +39,12 @@ ENV PATH=${NB_PYTHON_PREFIX}/bin:${CONDA_DIR}/bin:${PATH}
3939
ENV DASK_ROOT_CONFIG=${CONDA_DIR}/etc
4040

4141
RUN echo "Creating ${NB_USER} user..." \
42-
# Create a group for the user to be part of, with gid same as uid
43-
&& groupadd --gid ${NB_UID} ${NB_USER} \
44-
# Create non-root user, with given gid, uid and create $HOME
45-
&& useradd --create-home --gid ${NB_UID} --no-log-init --uid ${NB_UID} ${NB_USER} \
42+
# Change user name from ubuntu to jovyan
43+
&& usermod --login ${NB_USER} ubuntu \
44+
# Change group name from ubuntu to jovyan
45+
&& groupmod --new-name ${NB_USER} ubuntu \
46+
# Set home directory of jovyan user
47+
&& usermod --home /home/${NB_USER} --move-home ${NB_USER} \
4648
# Make sure that /srv is owned by non-root user, so we can install things there
4749
&& chown -R ${NB_USER}:${NB_USER} /srv
4850

0 commit comments

Comments
 (0)