From 372590fff20db30ea035dbd24a3aabed32145487 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Wed, 14 Oct 2015 13:38:49 +0100 Subject: [PATCH] bring up to latest baseimage specs --- Dockerfile | 15 ++++++++++----- init/50_apt-update.sh | 4 ---- 2 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 init/50_apt-update.sh diff --git a/Dockerfile b/Dockerfile index 20cfd16..c056f14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,15 +5,20 @@ ENV APTLIST="syncthing" #Applying stuff RUN curl -s https://syncthing.net/release-key.txt | apt-key add - && \ echo deb http://apt.syncthing.net/ syncthing release | tee /etc/apt/sources.list.d/syncthing-release.list && \ -apt-get update -q && apt-get install -y $APTLIST && \ +apt-get update -q && \ +apt-get install -qy $APTLIST && \ + +# give abc home folder of /config usermod -d /config abc && \ -apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* + +# clean up +apt-get clean && \ +rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* #Adding Custom files -ADD init/ /etc/my_init.d/ ADD services/ /etc/service/ -RUN chmod -v +x /etc/service/*/run && chmod -v +x /etc/my_init.d/*.sh +RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh # Volumes and Ports VOLUME ["/config", "/sync"] -EXPOSE 8384 \ No newline at end of file +EXPOSE 8384 diff --git a/init/50_apt-update.sh b/init/50_apt-update.sh deleted file mode 100644 index a42fcd7..0000000 --- a/init/50_apt-update.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -apt-get update -qq -apt-get --only-upgrade install -yqq $APTLIST