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:
Job79andClaude Opus 5.5 committed 2026-11-08 11:46:59 +01:00
1 parent 37459cb415
commit 0397174460
2 files changed
+10 -7

No files matched your search

+8
View File
@@ -19,6 +19,14 @@ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygi
COPY ./bin /usr/local/bin 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 === # === setup user ===
RUN useradd -ms /bin/bash user && \ RUN useradd -ms /bin/bash user && \
echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \ echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \
+2 -7
View File
@@ -1,12 +1,7 @@
source /etc/bashrc source /etc/bashrc
# === environment === # === prompt ===
export PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] " \ export PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] "
EDITOR="nvim" \
WAYLAND_DISPLAY="wayland-0" \
XDG_RUNTIME_DIR="/run/user/1000" \
SSH_AUTH_SOCK="/run/user/1000/ssh-auth-sock" \
TZ="Europe/Amsterdam"
# === aliases and functions === # === aliases and functions ===
alias vi=nvim alias vi=nvim