We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a79e58 commit 085c24fCopy full SHA for 085c24f
Dockerfile
@@ -3,8 +3,10 @@ FROM ghcr.io/jorgensd/dolfinx-tutorial:release
3
# create user with a home directory
4
ARG NB_USER=jovyan
5
ARG NB_UID=1000
6
-# 24.04 adds uid 1000, skip this if uid already exists
7
-RUN useradd -m ${NB_USER} -u ${NB_UID} || true
+# 24.04 adds `ubuntu` as uid 1000;
+# remove it if it already exists before creating our user
8
+RUN id -nu ${NB_UID} && userdel --force $(id -nu ${NB_UID}) || true; \
9
+ useradd -m ${NB_USER} -u ${NB_UID}
10
ENV HOME=/home/${NB_USER}
11
12
# Copy home directory for usage in binder
0 commit comments