From 229938805f5052736059438a54180a3b9f9ec234 Mon Sep 17 00:00:00 2001 From: Liangsheng Yin Date: Sun, 4 Jan 2026 12:27:13 +0800 Subject: [PATCH] Make personal configs optional in SGLang's official docker image. (#16365) --- docker/Dockerfile | 9 +++++---- docker/configs/{ => opt}/.gitconfig | 0 docker/configs/{ => opt}/.tmux.conf | 0 docker/configs/{ => opt}/.vimrc | 0 4 files changed, 5 insertions(+), 4 deletions(-) rename docker/configs/{ => opt}/.gitconfig (100%) rename docker/configs/{ => opt}/.tmux.conf (100%) rename docker/configs/{ => opt}/.vimrc (100%) diff --git a/docker/Dockerfile b/docker/Dockerfile index d69d966ad..2a7ede74a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -411,11 +411,12 @@ RUN sh -c "$(curl --retry 3 --retry-delay 2 -fsSL https://raw.githubusercontent. && git clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions \ && git clone --depth 1 https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting +# These configs are optional; users can override them by mounting their own files +COPY docker/configs/opt/.vimrc /opt/sglang/.vimrc +COPY docker/configs/opt/.tmux.conf /opt/sglang/.tmux.conf +COPY docker/configs/opt/.gitconfig /opt/sglang/.gitconfig + # Configure development environment -COPY docker/configs/.vimrc /root/.vimrc -COPY docker/configs/.tmux.conf /root/.tmux.conf -COPY docker/configs/.gitconfig /tmp/.gitconfig -RUN cat /tmp/.gitconfig >> /root/.gitconfig && rm /tmp/.gitconfig COPY docker/configs/.zshrc /root/.zshrc # Fix Triton to use system ptxas for Blackwell (sm_103a) support (CUDA 13+ only) diff --git a/docker/configs/.gitconfig b/docker/configs/opt/.gitconfig similarity index 100% rename from docker/configs/.gitconfig rename to docker/configs/opt/.gitconfig diff --git a/docker/configs/.tmux.conf b/docker/configs/opt/.tmux.conf similarity index 100% rename from docker/configs/.tmux.conf rename to docker/configs/opt/.tmux.conf diff --git a/docker/configs/.vimrc b/docker/configs/opt/.vimrc similarity index 100% rename from docker/configs/.vimrc rename to docker/configs/opt/.vimrc