Skip to content

Commit

Permalink
Merge pull request #4 from heuermh/docker-alt
Browse files Browse the repository at this point in the history
use FROM ghcr.io/pangenome/pggb:latest
  • Loading branch information
Zethson authored Nov 21, 2020
2 parents 32ed84d + 1f43d29 commit 5acbff2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
26 changes: 23 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
FROM nfcore/base:dev
LABEL authors="Simon Heumos, Michael L Heuer" \
FROM ghcr.io/pangenome/pggb:latest
LABEL authors="Simon Heumos, Michael Heuer, Lukas Heumos, Erik Garrison, Andrea Guarracino" \
description="Docker image containing all software requirements for the nf-core/pangenome pipeline"

# Install procps so that Nextflow can poll CPU usage and
# deep clean the apt cache to reduce image/layer size
RUN apt-get update \
&& apt-get install -y wget \
procps \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*

# Install miniconda
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh

# Add conda to the path
ENV PATH /root/miniconda3/bin:$PATH

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

# Add conda installation dir to PATH (instead of doing 'conda activate')
ENV PATH /opt/conda/envs/nf-core-pangenome-1.0dev/bin:$PATH

# Dump the details of the installed packages to a file for posterity
# Set path for all users
RUN echo "export PATH=$PATH" > /etc/profile

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

# Instruct R processes to use these empty files instead of clashing with a local version
Expand Down
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ dependencies:
- conda-forge::pygments=2.6.1

## bioconda packages
- bioconda::fastqc=0.11.9
- bioconda::multiqc=1.9

0 comments on commit 5acbff2

Please sign in to comment.