Skip to content

Commit

Permalink
Activate env using conda in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
adamd3 committed Jun 13, 2024
1 parent bcf8e94 commit 0a145a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY environment.yml .
RUN conda env create -f environment.yml

RUN ENV_NAME=$(grep -m 1 -E '^name: *' environment.yml | cut -d' ' -f2) && \
echo "source activate $ENV_NAME" > ~/.bashrc
echo "conda activate $ENV_NAME" > ~/.bashrc

SHELL ["/bin/bash", "-c"]

Expand Down

0 comments on commit 0a145a2

Please sign in to comment.