Skip to content

Commit 3962630

Browse files
committed
docker: Switch to Ubuntu 16.04 and use Python 3.8 to make repo happy
Fixes #2
1 parent ab4b91e commit 3962630

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Based on https://android.googlesource.com/platform/build/+/master/tools/docker/Dockerfile
2-
FROM ubuntu:14.04
2+
FROM ubuntu:16.04
33
ARG userid
44
ARG groupid
55
ARG username
6-
RUN apt-get update && apt-get install -y git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip python openjdk-7-jdk quilt
6+
RUN apt-get update && apt-get install -y git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip quilt libffi-dev libssl-dev libsqlite3-dev libreadline-dev libncursesw5-dev libbz2-dev liblzma-dev libgdbm-dev libdb-dev tk-dev blt-dev libexpat1-dev libmpdec-dev uuid-dev python
77
RUN curl -o jdk8.tgz https://android.googlesource.com/platform/prebuilts/jdk/jdk8/+archive/master.tar.gz \
88
&& tar -zxf jdk8.tgz linux-x86 \
9+
&& mkdir -p /usr/lib/jvm \
910
&& mv linux-x86 /usr/lib/jvm/java-8-openjdk-amd64 \
1011
&& rm -rf jdk8.tgz
12+
RUN curl -o Python-3.8.7.tgz https://www.python.org/ftp/python/3.8.7/Python-3.8.7.tgz && tar -xvf Python-3.8.7.tgz && cd Python-3.8.7 && ./configure --enable-optimizations && make install
1113
RUN curl -o /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo \
1214
&& chmod a+x /usr/local/bin/repo
1315
RUN groupadd -g $groupid $username \

0 commit comments

Comments
 (0)