summaryrefslogtreecommitdiff
path: root/ubuntu/bionic/Dockerfile
blob: d5f859101d56a1053d74bab4ecb576cb1065d62b (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
30
31
32
FROM ubuntu:bionic
MAINTAINER Christian Pointner <equinox@helsinki.at>

LABEL at.helsinki.docker.os.distro=ubuntu at.helsinki.docker.os.release=bionic

RUN set -x \
    && echo 'deb http://apt.helsinki.at/ubuntu/ bionic main universe' > /etc/apt/sources.list \
    && echo 'deb http://apt.helsinki.at/ubuntu/ bionic-updates main universe' >> /etc/apt/sources.list \
    && echo 'deb http://apt.helsinki.at/ubuntu-security/ bionic-security main universe' >>/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 locales \
    && 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/ bionic 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/*

ENV TZ="Europe/Vienna"
RUN set -x \
    && echo "de_AT.UTF-8 UTF-8\nen_US.UTF-8 UTF-8" > /etc/locale.gen \
    && locale-gen \
    && ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime \
    && echo ${TZ} > /etc/timezone

COPY common/bin/tini /usr/local/bin/

ENTRYPOINT ["tini", "--"]