refactor(base): set environment via ENV instead of bashrc
Variables in .bashrc only reached interactive shells, so commands started with DEVC_COMMAND or a plain podman exec missed them. Also disable the Claude auto-updater, as /usr/local/bin is not writable and the image is rebuilt weekly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+10
-7
No files matched your search
@@ -19,6 +19,14 @@ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygi
|
||||
|
||||
COPY ./bin /usr/local/bin
|
||||
|
||||
# === environment ===
|
||||
ENV EDITOR=nvim \
|
||||
TZ=Europe/Amsterdam \
|
||||
XDG_RUNTIME_DIR=/run/user/1000 \
|
||||
WAYLAND_DISPLAY=wayland-0 \
|
||||
SSH_AUTH_SOCK=/run/user/1000/ssh-auth-sock \
|
||||
DISABLE_AUTOUPDATER=1
|
||||
|
||||
# === setup user ===
|
||||
RUN useradd -ms /bin/bash user && \
|
||||
echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \
|
||||
|
||||
Reference in new issue
Block a user