Merge branch 'feature--slim-down-the-docker-image' into staging

This commit is contained in:
flow.gunso
2019-04-18 16:14:19 +02:00

View File

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