summaryrefslogtreecommitdiff
path: root/debian/stretch/Dockerfile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-07-25 11:43:04 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2018-07-25 11:43:04 (GMT)
commitf7316aaaff3d8479c68e6add40abd7465189c6b1 (patch)
tree7bc744ea4a78fd19d83326128a9f5100c5ee4eec /debian/stretch/Dockerfile
basic debian:stretch container
Diffstat (limited to 'debian/stretch/Dockerfile')
-rw-r--r--debian/stretch/Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/stretch/Dockerfile b/debian/stretch/Dockerfile
new file mode 100644
index 0000000..36b7039
--- /dev/null
+++ b/debian/stretch/Dockerfile
@@ -0,0 +1,29 @@
+FROM debian:stretch
+MAINTAINER Christian Pointner <equinox@helsinki.at>
+
+LABEL at.helsinki.docker.os.distro=debian at.helsinki.docker.os.release=stretch
+
+RUN set -x \
+ && echo 'deb http://apt.helsinki.at/debian/ stretch main' > /etc/apt/sources.list \
+ && echo 'deb http://apt.helsinki.at/debian/ stretch-updates main' >> /etc/apt/sources.list \
+ && echo 'deb http://apt.helsinki.at/debian-security/ stretch/updates main' >>/etc/apt/sources.list \
+ && echo 'APT::Install-Recommends "false";' >/etc/apt/apt.conf.d/02-norecommends \
+ && apt-get update -q \
+ && apt-get install -y -q tzdata gnupg2 \
+ && apt-get upgrade -y -q \
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+
+COPY common/helsinki_repo.pub /tmp
+RUN set -x \
+ && echo 'deb http://build.helsinki.at/ stretch main' >>/etc/apt/sources.list.d/helsinki.list \
+ && apt-key add /tmp/helsinki_repo.pub \
+ && apt-get update -q \
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+
+RUN set -x \
+ && echo "Europe/Vienna" > /etc/timezone \
+ && dpkg-reconfigure -f noninteractive tzdata
+
+COPY common/bin/tini /usr/local/bin/
+
+ENTRYPOINT ["tini", "--"]