Skip to content

Commit 7ac9982

Browse files
committed
👷 build(gitpod): add apt-cleans to reduce size and install tw-agent
1 parent 4536a6e commit 7ac9982

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

‎.github/gitpod.Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ RUN apt-get update --quiet && \
1515
curl \
1616
tree \
1717
graphviz \
18-
software-properties-common
19-
18+
software-properties-common && \
19+
apt-get clean && \
20+
rm -rf /var/lib/apt/lists/*
2021

2122
# Taken from: https://github.com/nf-core/tools/blob/master/nf_core/gitpod/gitpod.Dockerfile
2223
# Install Apptainer (Singularity)
2324
RUN add-apt-repository -y ppa:apptainer/ppa && \
2425
apt-get update --quiet && \
25-
apt install -y apptainer
26+
apt install -y apptainer && \
27+
apt-get clean && \
28+
rm -rf /var/lib/apt/lists/*
2629

2730
# Install Conda
2831
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
@@ -35,6 +38,11 @@ ENV PATH="/opt/conda/bin:$PATH"
3538
RUN mkdir -p /workspace/data \
3639
&& chown -R gitpod:gitpod /opt/conda /workspace/data
3740

41+
# Install Tower Agent
42+
RUN curl -fSL https://github.com/seqeralabs/tower-agent/releases/latest/download/tw-agent-linux-x86_64 > tw-agent && \
43+
chmod +x tw-agent && \
44+
mv tw-agent /usr/local/bin/tw-agent
45+
3846
# Change user to gitpod
3947
USER gitpod
4048

0 commit comments

Comments
 (0)