Docker Images for Flutter based on Circle's android image
You can either use it in CI or run locally via Docker:
docker run --rm -it -v ${PWD}:/build --workdir /build artemkozaev/flutter:<VERSION> flutter test
The example above simply mount current working directory and runs flutter test
CircleCi has most of the layers pre-cached on most of the machines
stable: Pulling from artemkozaev/flutter
8d691f585fa8: Already exists
3da6fe7ff2ef: Already exists
....
090be27cee1c: Pulling fs layer
Average Spin up Environment time is 20s if image is not found on the machine, 5s if image is found on machine
Docker tag: 2.5.1
Flutter version: v2.5.1
Docker tag: 2.2.2
Flutter version: v2.2.2
Docker tag: 1.22.4
Flutter version: v1.22.4
Docker tag: 1.20.2
Flutter version: v1.20.2
Docker tag: 1.12.13-5
Flutter version: v1.12.13+hotfix.5
Docker tag: 1.12.13-8
Flutter version: v1.12.13+hotfix.8
Docker tag: 1.9.1-6
Flutter version: v1.9.1+hotfix.6
FLUTTER_VERSION=staging DOCKER_TAG=1.22.4 ./build_docker.sh
FLUTTER_VERSION=staging DOCKER_TAG=1.22.4 ./push_docker.sh