diff --git a/.env.example b/.env.example index eac6c4d..2ee1aba 100644 --- a/.env.example +++ b/.env.example @@ -31,6 +31,11 @@ WORKSPACE_PATH=~/projects # Path to SSH keys on host SSH_KEY_PATH=~/.ssh +# ── Locale (defaults to en_US.UTF-8) ───────────────────────────────── +# LANG=sv_SE.UTF-8 +# LANGUAGE=sv_SE:sv +# LC_ALL=sv_SE.UTF-8 + # ── oh-my-opencode-slim (multi-agent orchestration) ────────────────── # Requires image built with INSTALL_OMOS=true # ENABLE_OMOS=false diff --git a/Dockerfile b/Dockerfile index 730b1f5..7fa4687 100644 --- a/Dockerfile +++ b/Dockerfile @@ -107,8 +107,8 @@ RUN ARCH=$(case "${TARGETARCH}" in amd64) echo "x86_64" ;; arm64) echo "aarch64" curl -fsSL "https://static.rust-lang.org/rustup/dist/${ARCH}-unknown-linux-gnu/rustup-init" -o /usr/local/bin/rustup-init && \ chmod +x /usr/local/bin/rustup-init -# Set locale -RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen +# Set locale — generate common UTF-8 locales (override via LANG/LC_ALL env vars) +RUN sed -i '/\.UTF-8/s/^# //g' /etc/locale.gen && locale-gen ENV LANG=en_US.UTF-8 ENV LANGUAGE=en_US:en ENV LC_ALL=en_US.UTF-8