Public Repository

Last pushed: 3 months ago
Short Description
Full Description


To build an android app (with go bindings) in Docker

This Dockerfile was specifically written to build (with but it should be possible to reuse or adapt it to build other android apps with go bindings (or even without).

usage example:

docker build -t go4droid .
mkdir $HOME/.gradle # for caching
go get -d
cd $GOPATH/src/
docker run --rm -v "$PWD":/home/gopher/project -v $HOME/.gradle:/home/gopher/.gradle -w /home/gopher/project --name go4droid -i -t go4droid /bin/bash
gradle wrapper --gradle-version 4.1 # only needed once, to generate the gradle wrapper.
./gradlew assembleDebug
Docker Pull Command