Skip to content
Snippets Groups Projects
Commit cf4530b4 authored by Xuefeng Ding's avatar Xuefeng Ding
Browse files

avoid double venv

parent ce4a5922
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,8 @@ RUN groupadd --gid $USER_GID $USERNAME && \ ...@@ -36,7 +36,8 @@ RUN groupadd --gid $USER_GID $USERNAME && \
USER $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)" && \ export COMMAND="$(curl -fsSL ${REMOTE}/raw/master/tools/install.sh)" && \
sh -c "${COMMAND}" "" --unattended sh -c "${COMMAND}" "" --unattended
# echo 'export PATH="/usr/local/cuda-12.4/bin${PATH:+:${PATH}}"' >>~/.zshrc && \ # echo 'export PATH="/usr/local/cuda-12.4/bin${PATH:+:${PATH}}"' >>~/.zshrc && \
...@@ -50,5 +51,3 @@ RUN source ~/venv/bin/activate && \ ...@@ -50,5 +51,3 @@ RUN source ~/venv/bin/activate && \
pip install --upgrade pip && \ pip install --upgrade pip && \
pip install --no-cache-dir -r ~/requirements-dev.txt && \ pip install --no-cache-dir -r ~/requirements-dev.txt && \
rm -rf ~/requirements.txt ~/requirements-dev.txt rm -rf ~/requirements.txt ~/requirements-dev.txt
RUN echo 'source ~/venv/bin/activate' >> ~/.zshrc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment