From 46b8e9285fdc15b44f10529fd12a20e3a09aea75 Mon Sep 17 00:00:00 2001 From: Iulian Meghea Date: Fri, 27 Feb 2026 05:18:53 +0000 Subject: [PATCH] fix: restore default USER coder in base image USER coder was removed in 3fc72fe when the starship config was moved to /etc/skel (which correctly requires root). However the image still needs to end with USER coder so containers start as the non-root coder user by default, rather than root. --- images/base/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/images/base/Dockerfile b/images/base/Dockerfile index 5cd3610..bab351b 100644 --- a/images/base/Dockerfile +++ b/images/base/Dockerfile @@ -78,3 +78,5 @@ RUN userdel -r ubuntu && \ RUN mkdir -p /etc/skel/.config COPY starship.toml /etc/skel/.config/starship.toml RUN echo 'eval "$(starship init bash)"' >> /etc/skel/.bashrc + +USER coder