From f2c2df83b2fd35a7d26f0cce3b886eee4b5561ef Mon Sep 17 00:00:00 2001 From: isayme Date: Wed, 6 May 2026 18:26:24 +0800 Subject: [PATCH] clear apt cache to reduce docker image size --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 559637c..42c1d99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,10 @@ LABEL org.opencontainers.image.source=https://github.com/SierraSoftworks/github- LABEL org.opencontainers.image.description="Backup your GitHub repositories and releases automatically" LABEL org.opencontainers.image.licenses=MIT -RUN apt-get update && apt-get install -y \ - openssl +RUN apt-get update && \ + apt-get install -y openssl && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* ADD ./github-backup /usr/local/bin/github-backup