a container for flutter development
801
docker-flutter the perfect ready-to-use flutter dev environment 🥳
inside the container you'll find
all this is happening inside a devcontainer 🤯
you get a consistent dev environement in 1 command, no matter the host machine 😍
spend 0 seconds trying to set up java, android studio, or flutter 🔥
by default, docker-flutter will run the flutter doctor command to show you everything is working
docker run -it ethernetz/docker-flutter
to set up a dev container, you'll also need to
/developer directory6080sleep infinity at the end to make sure the container stays open once its createdthe final command should look like this
docker run -it -v "$PWD":/developer -p 6080:6080 ethernetz/docker-flutter sleep infinity
flutter-docker even works inside a dev container
.devcontainer/devcontainer.json
{
"image": "ethernetz/docker-flutter:latest",
"customizations": {
"vscode": {
"extensions": ["Dart-Code.flutter", "Dart-Code.dart-code"]
}
},
"forwardPorts": [6080],
"runArgs": ["--privileged"]
}
once your dev environment is set up, it just takes 4 commands to see your flutter app in an android emulator
Xtigervnc ${DISPLAY} -rfbport ${VNC_PORT} -localhost -SecurityTypes=none
/home/developer/noVNC/utils/novnc_proxy --vnc localhost:${VNC_PORT} --listen ${NOVNC_PORT}
/home/developer/start_emulator.sh
flutter run -d emulator-5554

Content type
Image
Digest
sha256:e22353916…
Size
3.7 GB
Last updated
over 3 years ago
docker pull ethernetz/docker-flutter