fix cleanup

This commit is contained in:
Cabillot Julien 2018-05-14 14:00:39 -04:00
parent bcbc066173
commit c2442efbb9

View File

@ -27,8 +27,8 @@ RUN export SABNZBD_VERSION=2.3.0 PAR2CMDLINE_VERSION=v0.6.14-mt1 && \
export RUNTIME_PACKAGES="ca-certificates p7zip-full python-cheetah python-yenc unrar unzip libgomp1 openssl python-cryptography python-openssl curl" && \
export PIP_PACKAGES="sabyenc" && \
sed -i "s/ main$/ main contrib non-free/" /etc/apt/sources.list && \
apt-get -q update && \
apt-get install -qqy $BUILD_PACKAGES $RUNTIME_PACKAGES && \
apt-get -qq update && \
apt-get -qq --yes install $BUILD_PACKAGES $RUNTIME_PACKAGES && \
pip install $PIP_PACKAGES && \
curl -SL -o /tmp/sabnzbd.tar.gz https://github.com/sabnzbd/sabnzbd/releases/download/${SABNZBD_VERSION}/SABnzbd-${SABNZBD_VERSION}-src.tar.gz && \
tar xzf /tmp/sabnzbd.tar.gz && \
@ -43,17 +43,17 @@ RUN export SABNZBD_VERSION=2.3.0 PAR2CMDLINE_VERSION=v0.6.14-mt1 && \
./configure && \
make && \
make install && \
apt-get -y remove --purge $BUILD_PACKAGES && \
apt-get -y autoremove --purge && \
apt-get -y clean all && \
rm -rf "/usr/share/doc/*" \
"/var/cache/*" \
"/var/lib/apt/lists/*" \
"/usr/src/*" \
"/var/cache/*" \
apt-get -qq --yes remove --purge $BUILD_PACKAGES && \
apt-get -qq --yes autoremove --purge && \
apt-get -qq --yes clean all && \
rm -rf "/usr/share/doc/"* \
"/var/cache/"* \
"/var/lib/apt/lists/"* \
"/usr/src/"* \
"/var/cache/"* \
"/var/log/"{apt/*,dpkg.log} \
"/var/www/html" \
"/tmp/*"
"/tmp/"*
#
# Define container settings.