Skip to content
A Dockerfile for a minimal Android SDK install using Alpine Linux
Branch: master
Clone or download
Latest commit bbe10c3 Mar 29, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile add dockerfile Mar 28, 2017
LICENSE Initial commit Mar 28, 2017
README.md Create README.md Mar 29, 2017

README.md

min-alpine-android-sdk

A Dockerfile for a minimal Android SDK install using Alpine Linux

Introduction

There are numerous challenges to getting an Android project to build inside a Docker container

  • The Android SDK is large, and the CLI is cumbersome.
  • Alpine uses different C libraries than other Linux variants.
  • Android SDK requires JDK8, which has known issues with some C libraries
  • The Linux Android SDK requires a 32 bit compatibility library (ia32-libs) which ubuntu has, but Alpine does not

This image works, and isn't massive like many of the Ubuntu based images

Install

docker pull tabrindle/min-alpine-android-sdk:latest

OR

Dockerfile:

  FROM tabrindle/min-alpine-android-sdk:latest

Usage

An example of building a Cordova based Android project on this machine:

	docker run -t -u root -v `pwd`:/workspace tabrindle/min-alpine-android-sdk:latest /bin/bash -c \
  "cd workspace/platforms/android && ./gradlew cdvBuildDebug -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
You can’t perform that action at this time.