summaryrefslogtreecommitdiff
path: root/debian/stretch/Dockerfile
blob: 36b70398634eba31d45bddd7fa164fc821dc068a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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", "--"]