Skip to content

Instantly share code, notes, and snippets.

@engividal
Created October 26, 2022 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save engividal/cb0497eaef892cefc7709fab71beb3db to your computer and use it in GitHub Desktop.
Save engividal/cb0497eaef892cefc7709fab71beb3db to your computer and use it in GitHub Desktop.
Docker image to build Android AOSP
# syntax=docker/dockerfile:1
#
# Docker image to build Android AOSP
#
FROM ubuntu:18.04
# Dependency required on Android docs
RUN apt-get update && apt-get install -y git-core \
gnupg flex bison build-essential zip curl zlib1g-dev \
gcc-multilib g++-multilib libc6-dev-i386 libncurses5 \
lib32ncurses5-dev x11proto-core-dev libx11-dev \
lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc \
unzip fontconfig apt-utils curl python3
# Install repo
ADD https://storage.googleapis.com/git-repo-downloads/repo /usr/local/bin/
RUN chmod 755 /usr/local/bin/*
# Work in the build directory, repo is expected to be init'd here
WORKDIR /aosp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment