Based on openjdk:8-slim
and the work of
Álvaro S. on installing the android
sdk.
docker build -t [image-name] .
docker run -it --entrypoint=/bin/bash [image-name]
This image can be used to test and build Android APKs developed with Flutter.
Here is an example bitbucket-pipelines.yml
for Bitbucket Pipelines including
caches for gradle and gradlewrapper:
image: valotas/lokali-build:version-1
pipelines:
default:
- step:
caches:
- gradle
- gradlewrapper
- flutter
script:
- echo "Building APK..."
- flutter upgrade
- flutter doctor
- flutter -v build apk
definitions:
caches:
gradlewrapper: ~/.gradle/wrapper
flutter: /opt/flutter