FROM nfcore/base:1.9
LABEL authors="Leon Bichmann, Lukas Heumos, Alexander Peltzer" \
      description="Docker image containing all requirements for nf-core/mhcquant pipeline"

# Install the conda environment
COPY environment.yml /
RUN conda env create -f /environment.yml && conda clean -a

# Dump the details of the installed packages to a file for posterity
RUN conda env export --name nf-core-mhcquant-1.5.1 > nf-core-mhcquant-1.5.1.yml

# Add conda installation dir and thirdparties to PATH (instead of doing 'conda activate')
ENV PATH /opt/conda/envs/nf-core-mhcquant-1.5.1/bin:$PATH
