bring up to latest baseimage specs

This commit is contained in:
sparklyballs 2015-10-14 13:38:49 +01:00
parent bb2249dd3e
commit 372590fff2
2 changed files with 10 additions and 9 deletions

View File

@ -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
EXPOSE 8384

View File

@ -1,4 +0,0 @@
#!/bin/bash
apt-get update -qq
apt-get --only-upgrade install -yqq $APTLIST