1# Copyright 2019 The Hafnium Authors.
2#
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file or at
5# https://opensource.org/licenses/BSD-3-Clause.
6
7#
8# Base container image to be uploaded to Google Cloud Platform as
9# "eu.gcr.io/hafnium-build/hafnium_ci". Each user derives their own container
10# with local user permissions from this base image. It should contain everything
11# needed to build and test Hafnium.
12#
13FROM launcher.gcr.io/google/ubuntu1804
14MAINTAINER Hafnium Team <hafnium-team+build@google.com>
15
16# Install dependencies. Clear APT cache at the end to save space.
17ENV DEBIAN_FRONTEND=noninteractive
18RUN 	apt-get update \
19	&& apt-get install -y \
20		bc                             `# for Linux headers` \
21		bison \
22		build-essential \
23		cpio \
24		flex \
25		git \
26		libpixman-1-0                  `# for QEMU` \
27		libsdl2-2.0-0                  `# for QEMU` \
28		libglib2.0                     `# for QEMU` \
29		libssl-dev                     `# for Linux headers` \
30		python \
31		python-git                     `# for Linux checkpatch` \
32		python-ply                     `# for Linux checkpatch` \
33		python3                        `# for all build scripts` \
34		python3-serial                 `# for hftest.py` \
35		python3-pip                    `# for hftest.py` \
36		strace                         `# for strace_open.sh` \
37	&& pip3 install fdt && rm -rf /var/lib/apt/lists/*
38