Files
docker-deployment/build/scripts/cleanup.sh

17 lines
314 B
Bash

#!/bin/bash
set -e
source /build/config
set -x
## Remove temporary packages for minimal builds
if [ $MODE == "minimal" ]; then
apt_remove "$(cat /build/temporary)"
fi
## Clean apt files
apt-get clean
rm -rf /build
rm -rf /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/*
rm -f /etc/dpkg/dpkg.cfg.d/02apt-speedup