this is dockerfile to build docker image contain everything to build your flutter projects
to build the image clone the repo
git clone https://notabug.org/alimiracle/flutter_build_dockerfile
then
cd flutter_build_dockerfile
then build the image docker build .
you can pull and use my pre build imige
docker pull alimiracle/flutter