-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
67 lines (60 loc) · 1.49 KB
/
Dockerfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM debian:buster
# AOSP dependencies https://source.android.com/source/initializing.html
RUN apt-get update && apt-get -q -y install \
git-core \
gnupg \
flex \
bison \
gperf \
build-essential \
kmod \
zip \
curl \
zlib1g-dev \
gcc-multilib \
g++-multilib \
libc6-dev-i386 \
libncurses5 \
x11proto-core-dev \
libx11-dev \
lib32z-dev \
liblz4-tool \
libssl-dev \
ccache \
libgl1-mesa-dev \
libxml2-utils \
xsltproc \
unzip \
python \
openjdk-11-jdk
# OpenJDK 8 is not available in buster so install from AOSP
# Based on https://android.googlesource.com/platform/build/+/master/tools/docker/Dockerfile
RUN curl -o jdk8.tgz https://android.googlesource.com/platform/prebuilts/jdk/jdk8/+archive/master.tar.gz \
&& tar -zxf jdk8.tgz linux-x86 \
&& mv linux-x86 /usr/lib/jvm/java-8-openjdk-amd64 \
&& rm -rf jdk8.tgz
# missing dependencies in base image
RUN apt-get -q -y install \
procps
# kernel building dependencies
RUN apt-get -q -y install \
bc
# Google Pixel (sailfish) dependencies
RUN apt-get -q -y install \
bsdmainutils # hexdump is required for generating OTA
# desktop image building dependencies
RUN apt-get -q -y install \
binfmt-support \
debootstrap \
debian-archive-keyring \
fakeroot \
lxc \
make \
qemu \
qemu-user-static
# LXC dependencies
RUN apt-get -q -y install \
automake \
pkg-config \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*