From a0973c24664ce18f6c2ab8cb51937d1cac21dfa7 Mon Sep 17 00:00:00 2001 From: David Binney Date: Tue, 18 Jun 2024 20:35:58 +0930 Subject: [PATCH] fix: squash the layers for more container squeeze --- Dockerfile | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 455c03f..dfe28d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Description: Dockerfile for the Sleeper service +# Description: This is a utility container with all the tools needed for testing clusters and networks FROM debian:bookworm-slim # Metadata @@ -16,23 +16,8 @@ COPY ./*.sh /app/ # Update and install basic tools RUN apt-get update && apt-get install -y \ dnsutils netcat-openbsd curl wget tar gnupg vim tmux zsh screenfetch && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -# Install database clients -RUN apt-get update && apt-get install -y \ postgresql-client redis-tools && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -# Install programming languages and tools -RUN apt-get update && apt-get install -y \ - git golang && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get install -y \ - nodejs npm && \ + git golang nodejs npm && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*