Skip to content

Commit 6078845

Browse files
committed
corrected Dockerfile
1 parent c5ad54b commit 6078845

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

Dockerfile

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,36 @@
22
FROM mambaorg/micromamba:latest
33
LABEL 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
810
RUN 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
2031
WORKDIR /staging
2132

33+
# Copy contents of the folder to the working directory
2234
COPY . .
23-
# Update package manager and install essential build tools procps is required for Nextflow/nf-core
2435

2536

2637

0 commit comments

Comments
 (0)