Improve autoclean apt, clean apt

This commit is contained in:
flow.gunso
2019-04-18 16:14:10 +02:00
parent fd4d1314b3
commit 16776c07b0

View File

@@ -26,9 +26,16 @@ COPY assets/seafile.list /etc/apt/sources.list.d/
COPY utils/build/import-seafile-apt-key.sh /
RUN /bin/bash /import-seafile-apt-key.sh ;\
apt-get update ;\
apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor ;\
apt-get autoclean ;\
rm -f \
apt-get install \
-o Dpkg::Options::="--force-confold" \
-y \
seafile-cli \
supervisor ;\
apt-get clean ;\
apt-get autoclean \
-o APT::Clean-Installed=true ;\
rm \
-f \
/var/log/fsck/*.log \
/var/log/apt/*.log \
/var/cache/debconf/*.dat-old \