-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM condaforge/miniforge3:latest | ||
|
||
ARG CONDA_PREFIX=/opt/conda | ||
ARG CONDA_ENV=manubot | ||
|
||
COPY environment.yml / | ||
RUN conda env create \ | ||
--prefix=$CONDA_PREFIX/envs/$CONDA_ENV \ | ||
--file=/environment.yml \ | ||
&& conda clean --all --force-pkgs-dirs --yes | ||
|
||
ENV PATH $CONDA_PREFIX/envs/$CONDA_ENV/bin:$PATH | ||
RUN echo "conda activate $CONDA_ENV" > ~/.bashrc | ||
RUN /bin/bash -c "conda activate $CONDA_ENV" | ||
|
||
ENV CONDA_DEFAULT_ENV=$CONDA_ENV |