From 6333307479a1ba211c417a2887ab604fd970155d Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Tue, 8 Aug 2017 14:19:53 +0800 Subject: [PATCH] docker image: move up infrequently-changed layers --- image/seafile/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/image/seafile/Dockerfile b/image/seafile/Dockerfile index ef9c06c..ac88dd0 100644 --- a/image/seafile/Dockerfile +++ b/image/seafile/Dockerfile @@ -1,16 +1,17 @@ FROM seafileltd/base:16.04 WORKDIR /opt/seafile -ENV SEAFILE_VERSION=6.1.1 - # syslog-ng and syslog-forwarder would mess up the container stdout, not good # when debugging/upgrading. RUN sed -i -e 's|\(^exec syslog-ng.*$\)|\1 >>/var/log/syslog-ng.log 2>\&1|g' /etc/service/syslog-ng/run && \ rm -rf /etc/service/syslog-forwarder +RUN mkdir -p /etc/my_init.d + +ENV SEAFILE_VERSION=6.1.1 + RUN mkdir -p /opt/seafile/ && \ curl -sSL -o - https://download.seadrive.org/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz \ | tar xzf - -C /opt/seafile/ -RUN mkdir -p /etc/my_init.d ADD create_data_links.sh /etc/my_init.d/create_data_links.sh