From cf4530b43d54f39756dce7ada615c80c0de2909d Mon Sep 17 00:00:00 2001 From: "Xuefeng Ding (IHEP)" <dingxf@ihep.ac.cn> Date: Sat, 7 Dec 2024 18:51:32 +0000 Subject: [PATCH] avoid double venv --- .devcontainer/non-root-user/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.devcontainer/non-root-user/Dockerfile b/.devcontainer/non-root-user/Dockerfile index c705257..2ea277c 100644 --- a/.devcontainer/non-root-user/Dockerfile +++ b/.devcontainer/non-root-user/Dockerfile @@ -36,7 +36,8 @@ RUN groupadd --gid $USER_GID $USERNAME && \ USER $USERNAME -RUN export REMOTE="https://gitee.com/mirrors/oh-my-zsh" && \ +RUN echo 'source ~/venv/bin/activate' >> ~/.zshrc && \ + export REMOTE="https://gitee.com/mirrors/oh-my-zsh" && \ export COMMAND="$(curl -fsSL ${REMOTE}/raw/master/tools/install.sh)" && \ sh -c "${COMMAND}" "" --unattended # echo 'export PATH="/usr/local/cuda-12.4/bin${PATH:+:${PATH}}"' >>~/.zshrc && \ @@ -50,5 +51,3 @@ RUN source ~/venv/bin/activate && \ pip install --upgrade pip && \ pip install --no-cache-dir -r ~/requirements-dev.txt && \ rm -rf ~/requirements.txt ~/requirements-dev.txt - -RUN echo 'source ~/venv/bin/activate' >> ~/.zshrc -- GitLab