Skip to content

Commit

Permalink
fix: make sure mamba is in the path
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Oct 23, 2024
1 parent 6111511 commit f775adf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/ccbr_ubuntu_base_20.04/Dockerfile.v7
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ RUN echo 'export PATH=/opt2/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" -O ~/miniforge3.sh && \
/bin/bash ~/miniforge3.sh -b -p /opt2/conda && \
rm ~/miniforge3.sh && chmod 777 -R /opt2/conda/
ENV PATH="/opt2/conda/bin:$PATH"

# R, python, and other packages available in conda should be installed with mamba here.
# Specify all dependencies in environment.yml
Expand All @@ -98,7 +99,7 @@ ENV PATH="/opt2/conda/envs/${CONDA_ENV}/bin:$PATH"
ENV PYTHONPATH=""

# Fix python
RUN ln -s /opt2/conda/bin/python /usr/bin/python \
RUN ln -s /opt2/conda/bin/python3 /usr/bin/python \
&& ln -s /usr/bin/python2.7 /usr/bin/python2

# cleanup etc
Expand Down

0 comments on commit f775adf

Please sign in to comment.