From 7b2ec8bc8b82d9b99630b4a7cba1e0ce24b340d7 Mon Sep 17 00:00:00 2001 From: Remi-Andre Olsen Date: Fri, 10 Nov 2023 09:39:07 +0100 Subject: [PATCH] Change to micromamba --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index da3a2a4..c79f571 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,16 @@ -FROM frolvlad/alpine-miniconda3 +FROM mambaorg/micromamba LABEL author="Remi-Andre Olsen" \ description="Anglerfish" \ maintainer="remi-andre.olsen@scilifelab.se" -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