contrib/packaging/docker/ubuntu.template
author Matt Harbison <matt_harbison@yahoo.com>
Tue, 24 Nov 2020 16:17:16 -0500
changeset 45983 971424517e17
parent 44037 b084ad4875a4
permissions -rw-r--r--
packaging: drop Disco (19.04) and add Focal (20.04) Disco support ended in January 2020, and Focal does not have an announced EOL. Something is now installing and configuring `tzdata`, which was throwing up an interactive prompt to configure the timezone. Aside from being hostile to automation, the prompt didn't actually accept input and hung the process. This propagates the host's timezone into the image via environment variable in order to skip the prompt, and avoid hardcoding a value. Differential Revision: https://phab.mercurial-scm.org/D9396
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
38463
c8ef9d897e14 packaging: don't write files for templatized Dockerfiles
Gregory Szorc <gregory.szorc@gmail.com>
parents: 38461
diff changeset
     1
FROM ubuntu:%CODENAME%
38461
11eda1f1b6e7 packaging: consistently create build user in Dockerfiles
Gregory Szorc <gregory.szorc@gmail.com>
parents: 38045
diff changeset
     2
11eda1f1b6e7 packaging: consistently create build user in Dockerfiles
Gregory Szorc <gregory.szorc@gmail.com>
parents: 38045
diff changeset
     3
RUN groupadd -g 1000 build && \
11eda1f1b6e7 packaging: consistently create build user in Dockerfiles
Gregory Szorc <gregory.szorc@gmail.com>
parents: 38045
diff changeset
     4
    useradd -u 1000 -g 1000 -s /bin/bash -d /build -m build
11eda1f1b6e7 packaging: consistently create build user in Dockerfiles
Gregory Szorc <gregory.szorc@gmail.com>
parents: 38045
diff changeset
     5
45983
971424517e17 packaging: drop Disco (19.04) and add Focal (20.04)
Matt Harbison <matt_harbison@yahoo.com>
parents: 44037
diff changeset
     6
ARG DEBIAN_FRONTEND=noninteractive
971424517e17 packaging: drop Disco (19.04) and add Focal (20.04)
Matt Harbison <matt_harbison@yahoo.com>
parents: 44037
diff changeset
     7
971424517e17 packaging: drop Disco (19.04) and add Focal (20.04)
Matt Harbison <matt_harbison@yahoo.com>
parents: 44037
diff changeset
     8
ENV TZ=%TZ%
971424517e17 packaging: drop Disco (19.04) and add Focal (20.04)
Matt Harbison <matt_harbison@yahoo.com>
parents: 44037
diff changeset
     9
29031
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
    10
RUN apt-get update && apt-get install -y \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
    11
  build-essential \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
    12
  debhelper \
34424
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32148
diff changeset
    13
  devscripts \
29031
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
    14
  dh-python \
32148
e02bae37af30 docker: install less as a build-time dependency in deb-based distros
Anton Shestakov <av6@dwimlabs.net>
parents: 29031
diff changeset
    15
  less \
29031
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
    16
  python \
44037
b084ad4875a4 packaging: update Ubuntu docker build dependencies to Python 3
Connor Sheehan <sheehan@mozilla.com>
parents: 38463
diff changeset
    17
  python3-all \
b084ad4875a4 packaging: update Ubuntu docker build dependencies to Python 3
Connor Sheehan <sheehan@mozilla.com>
parents: 38463
diff changeset
    18
  python3-all-dev \
b084ad4875a4 packaging: update Ubuntu docker build dependencies to Python 3
Connor Sheehan <sheehan@mozilla.com>
parents: 38463
diff changeset
    19
  python3-docutils \
34424
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32148
diff changeset
    20
  unzip \
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 32148
diff changeset
    21
  zip