servo/etc/taskcluster/docker/base.dockerfile
Simon Sapin 07fff6c7c7 Upgrade CI to Ubuntu 20.04 LTS
19.10 has been at end-of-life since July.

Also switch to an un-dated Docker Hub tag. Built docker images expire after
a month, and when rebuilding we install the latest versions of additional
packages. We might has well pick up-to-date versions of the base system
as well.

We do stay within one Ubuntu release, though.
2020-11-14 12:11:48 +01:00

44 lines
1.2 KiB
Docker

FROM ubuntu:20.04
ENV \
#
# Some APT packages like 'tzdata' wait for user input on install by default.
# https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
DEBIAN_FRONTEND=noninteractive \
LANG=C.UTF-8 \
LANGUAGE=C.UTF-8 \
LC_ALL=C.UTF-8
RUN \
apt-get update -q && \
apt-get install -qy --no-install-recommends \
#
# Cloning the repository
git \
ca-certificates \
#
# Running mach with Python 2
python2 \
python2-dev \
python-is-python2 \
#
# Running mach with Python 3
python3 \
python3-pip \
python3-dev \
virtualenv \
#
# Compiling C modules when installing Python packages in a virtualenv
gcc \
#
# Installing rustup and sccache (build dockerfile) or fetching build artifacts (run tasks)
curl \
# Setting the default locale
locales \
locales-all \
&& \
#
# Python 2 bits that have been removed from Ubuntu packages
curl https://bootstrap.pypa.io/get-pip.py -sSf -o get-pip.py && \
python2 get-pip.py && \
python2 -m pip install virtualenv