contrib/packaging/docker/ubuntu.template
author Matt Harbison <matt_harbison@yahoo.com>
Tue, 24 Nov 2020 16:17:16 -0500
changeset 45968 971424517e17
parent 44036 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

FROM ubuntu:%CODENAME%

RUN groupadd -g 1000 build && \
    useradd -u 1000 -g 1000 -s /bin/bash -d /build -m build

ARG DEBIAN_FRONTEND=noninteractive

ENV TZ=%TZ%

RUN apt-get update && apt-get install -y \
  build-essential \
  debhelper \
  devscripts \
  dh-python \
  less \
  python \
  python3-all \
  python3-all-dev \
  python3-docutils \
  unzip \
  zip