File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22FROM mambaorg/micromamba:latest
33LABEL maintainer="Victor Perez"
44
5- # Set the base layer for micromamba and copy the environment file
6- COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/env.yaml
5+ # Set the base layer for micromamba
6+ USER root
7+ COPY environment.yml .
78
9+ # Update package manager and install essential build tools
810RUN apt-get update -qq && apt-get install -y \
911 build-essential \
1012 ffmpeg \
1113 libsm6 \
1214 libxext6 \
1315 procps
1416
15- RUN micromamba install -y -n base -f /tmp/env.yaml && \
16- micromamba clean --all --yes
17+ # Set the environment variable for the root prefix
18+ ARG MAMBA_ROOT_PREFIX=/opt/conda
1719
18- ENV PATH="${PATH}:/opt/conda/bin"
20+ # Add /opt/conda/bin to the PATH
21+ ENV PATH $MAMBA_ROOT_PREFIX/bin:$PATH
1922
23+ # Install dependencies with micromamba, clean afterwards
24+ RUN micromamba env create -f environment.yml \
25+ && micromamba clean --all --yes
26+
27+ # Add environment to PATH
28+ ENV PATH="/opt/conda/envs/staging_env/bin:$PATH"
29+
30+ # Set the working directory
2031WORKDIR /staging
2132
33+ # Copy contents of the folder to the working directory
2234COPY . .
23- # Update package manager and install essential build tools procps is required for Nextflow/nf-core
2435
2536
2637
You can’t perform that action at this time.
0 commit comments