mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 23:38:08 -05:00
Dockerfile.j2: activate env at the end
This commit is contained in:
@@ -74,7 +74,11 @@ RUN cd /opendevin/code && \
|
||||
/opendevin/miniforge3/bin/mamba run -n base poetry cache clear --all . && \
|
||||
{% if not skip_init %}chmod -R g+rws /opendevin/poetry && {% endif %} \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
||||
/opendevin/miniforge3/bin/mamba clean --all
|
||||
/opendevin/miniforge3/bin/mamba clean --all && \
|
||||
# These lines shall activate the environment for future use
|
||||
POETRY_ENV_PATH=$(/opendevin/miniforge3/bin/mamba run -n base poetry env info --path) && \
|
||||
echo "source $POETRY_ENV_PATH/bin/activate" >> /etc/bash.bashrc && \
|
||||
echo "export PATH=$POETRY_ENV_PATH/bin:$PATH" >> /etc/bash.bashrc
|
||||
|
||||
# ================================================================
|
||||
# END: Copy Project and Install/Update Dependencies
|
||||
|
||||
Reference in New Issue
Block a user