Base all on xenial to save some space loading chunks, clean-up images

This commit is contained in:
andryyy
2016-12-23 10:27:48 +01:00
parent b0db732e87
commit 5d0081a0ec
9 changed files with 87 additions and 42 deletions

View File

@@ -2,6 +2,12 @@ FROM ubuntu:xenial
MAINTAINER Andre Peters <andre.peters@servercow.de>
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C
RUN dpkg-divert --local --rename --add /sbin/initctl \
&& ln -sf /bin/true /sbin/initctl \
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
&& ln -sf /bin/true /usr/bin/ischroot
ENV GOSU_VERSION 1.9
RUN set -x \
@@ -30,3 +36,4 @@ EXPOSE 20000
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

View File

@@ -1,6 +1,10 @@
#!/bin/bash
set -e
until mysql -u ${DBUSER} -p${DBPASS} ${DBNAME} -e ""; do
sleep 1
done
mkdir -p /var/lib/sogo/GNUstep/Defaults/
# Generate plist header with timezone data