Skip to content

Commit

Permalink
Change to micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
remiolsen committed Nov 10, 2023
1 parent 1f6fea0 commit 7b2ec8b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
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

0 comments on commit 7b2ec8b

Please sign in to comment.