File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Use the official micromamba image as a base
12FROM mambaorg/micromamba:latest
2- COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/env.yaml
3- RUN micromamba install -y -n base -f /tmp/env.yaml && \
4- micromamba clean --all --yes
3+ LABEL maintainer="Victor Perez"
4+
5+ # Set the base layer for micromamba and copy the environment file
6+ USER root
7+ COPY environment.yml .
8+ # Update package manager and install essential build tools procps is required for Nextflow/nf-core
9+ RUN apt-get update -qq && apt-get install -y \
10+ build-essential \
11+ ffmpeg \
12+ libsm6 \
13+ libxext6 \
14+ procps
15+
16+ # Set the environment variable for the root prefix
17+ ARG MAMBA_ROOT_PREFIX=/opt/conda
18+
19+ # Add /opt/conda/bin to the PATH
20+ ENV PATH $MAMBA_ROOT_PREFIX/bin:$PATH
21+
22+ # Install dependencies with micromamba, clean afterwards
23+ RUN micromamba env create -f environment.yml \
24+ && micromamba clean --all --yes
25+
26+ # Add environment to PATH
527ENV PATH="${PATH}:/opt/conda/bin"
28+
29+ # Set the working directory
630WORKDIR /staging
31+
32+ # Copy contents of the folder to the working directory
733COPY . .
You can’t perform that action at this time.
0 commit comments