mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +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:
committed by
Alberto Bertogli
parent
68ba0d2600
commit
c6e3fb42b0
@@ -28,7 +28,10 @@ RUN apt-get update -q && \
|
||||
chasquid \
|
||||
dovecot-lmtpd dovecot-imapd dovecot-pop3d \
|
||||
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
|
||||
# built above.
|
||||
|
||||
Reference in New Issue
Block a user