1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-18 14:47:03 +00:00

docker: Cleanup apt packages and cache in build

This patch makes Docker build clean up the apt packages and cache, to
reduce the size of the final image.

https://github.com/albertito/chasquid/pull/68

Amended-by: Alberto Bertogli <albertito@blitiri.com.ar>
  Adjusted commit message.
This commit is contained in:
Guiorgy
2025-08-02 22:06:59 +04:00
committed by Alberto Bertogli
parent 68ba0d2600
commit c6e3fb42b0

View File

@@ -28,7 +28,10 @@ RUN apt-get update -q && \
chasquid \ chasquid \
dovecot-lmtpd dovecot-imapd dovecot-pop3d \ dovecot-lmtpd dovecot-imapd dovecot-pop3d \
dovecot-sieve dovecot-managesieved \ dovecot-sieve dovecot-managesieved \
acl libcap2-bin sudo certbot acl libcap2-bin sudo certbot && \
apt-get autoremove --purge -y -q && \
apt-get autoclean -y -q && \
rm -rf /var/lib/apt/lists/*
# Copy the binaries. This overrides the debian packages with the ones we just # Copy the binaries. This overrides the debian packages with the ones we just
# built above. # built above.