-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 changed file
with
6 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
FROM frolvlad/alpine-miniconda3 | ||
FROM mambaorg/micromamba | ||
|
||
LABEL author="Remi-Andre Olsen" \ | ||
description="Anglerfish" \ | ||
maintainer="[email protected]" | ||
|
||
COPY environment.yml / | ||
RUN conda env create -f /environment.yml && conda clean -a | ||
USER root | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml / | ||
RUN micromamba env create -n anglerfish && micromamba install -y -n anglerfish -f /environment.yml && micromamba clean --all --yes | ||
ENV PATH /opt/conda/envs/anglerfish/bin:$PATH | ||
|
||
# Add source files to the container | ||
ADD . /usr/src/anglerfish | ||
WORKDIR /usr/src/anglerfish | ||
|
||
RUN python -m pip install . | ||
RUN eval "$(micromamba shell hook --shell bash)" && micromamba activate anglerfish && python -m pip install . | ||
USER $MAMBA_USER |