File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
66LABEL 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}
3939ENV DASK_ROOT_CONFIG=${CONDA_DIR}/etc
4040
4141RUN 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
You can’t perform that action at this time.
0 commit comments