Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize layers in dockerfile #2842

Merged
merged 5 commits into from
Mar 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
optimize layers in dockerfile
mashehu committed Mar 12, 2024
commit adf3948ad0a0bbfc9f48acce095acf3bca68c6b4
31 changes: 14 additions & 17 deletions nf_core/gitpod/gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ USER root
# Install util tools.
# software-properties-common is needed to add ppa support for Apptainer installation
RUN apt-get update --quiet && \
apt-get install --quiet --yes \
apt-get install --quiet --yes --no-install-recommends \
apt-transport-https \
apt-utils \
sudo \
@@ -18,18 +18,17 @@ RUN apt-get update --quiet && \
curl \
tree \
graphviz \
software-properties-common

# Install Apptainer (Singularity)
RUN add-apt-repository -y ppa:apptainer/ppa && \
software-properties-common && \
add-apt-repository -y ppa:apptainer/ppa && \
apt-get update --quiet && \
apt install -y apptainer

# Install Conda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
apt-get install --quiet --yes apptainer && \
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \
rm Miniconda3-latest-Linux-x86_64.sh
rm Miniconda3-latest-Linux-x86_64.sh && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Set PATH for Conda
ENV PATH="/opt/conda/bin:$PATH"

# Add the nf-core source files to the image
@@ -58,12 +57,10 @@ RUN conda config --add channels defaults && \
pytest-workflow && \
conda clean --all --force-pkgs-dirs --yes

# Update Nextflow
RUN nextflow self-update

# Install nf-core
RUN python -m pip install . --no-cache-dir
# Update Nextflow and Install nf-core
RUN nextflow self-update && \
python -m pip install . --no-cache-dir

# Setup pdiff for nf-test diffs
RUN export NFT_DIFF="pdiff" && \
export NFT_DIFF_ARGS="--line-numbers --expand-tabs=2"
ENV NFT_DIFF="pdiff"
ENV NFT_DIFF_ARGS="--line-numbers --expand-tabs=2"