Skip to content

Commit

Permalink
Init conda
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Zhao <simonyansenzhao@gmail.com>
  • Loading branch information
SimonYansenZhao committed Sep 26, 2024
1 parent 47a2b6e commit 35a0b21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ COPY ${RECO_LOCAL_DIR} ${RECO_DIR}

RUN RECO=$(if [ -z "${GIT_REF}" ]; then echo "${RECO_DIR}"; else echo "recommenders"; fi); \
RECO_URL=$(if [ -z "${GIT_REF}" ]; then echo ""; else echo "@git+https://github.com/recommenders-team/recommenders.git@${GIT_REF}"; fi); \
${CONDA_PREFIX}/bin/conda activate ${ENV_NAME} && \
source ${CONDA_PREFIX}/bin/activate && \
conda activate ${ENV_NAME} && \
pip install ${RECO}$(if [ -z "${EXTRAS}" ]; then echo ""; else echo "[${EXTRAS}]"; fi)${RECO_URL} && \
python -m ipykernel install --user --name ${ENV_NAME} --display-name "Python (${ENV_NAME})"

0 comments on commit 35a0b21

Please sign in to comment.