Skip to content

Commit 883228a

Browse files
committed
updated Dockerfile
1 parent 19c206b commit 883228a

1 file changed

Lines changed: 29 additions & 3 deletions

File tree

Dockerfile

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1+
# Use the official micromamba image as a base
12
FROM 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
527
ENV PATH="${PATH}:/opt/conda/bin"
28+
29+
# Set the working directory
630
WORKDIR /staging
31+
32+
# Copy contents of the folder to the working directory
733
COPY . .

0 commit comments

Comments
 (0)