edwardinubuntu / flutter-web-dockerfile

A demo how to setup flutter web in docker container

Home Page:https://flutter.soleiltw.me/myanimate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter-web-dockerfile

A demo how to setup flutter web in docker container. The demo code is from flutter official cookbook Animate the properties of a container. And the docker build web was learned and reference from building a flutter web container.

Command

Build the docker image

Use docker build the container image

docker build -t myanimate-web .

If you have some problem during cache, you can clean cache by this

docker build --no-cache -t myanimate-web .

After Success building image

Run the docker image with localhost 1200 port. You can change to any other port just replace it.

docker run -d -p 1200:80 --name myanimate myanimate-web

Here we go, open browser and go to http://localhost:1200/

About the Dockerfile

In the Dockerfile line 15 checkout flutter specific version 3.13.0, and in a future we can continuous maintain and upgrade to the latest / stable or any desired version.

About

A demo how to setup flutter web in docker container

https://flutter.soleiltw.me/myanimate/

License:MIT License


Languages

Language:Dart 48.5%Language:Dockerfile 20.6%Language:HTML 17.0%Language:Kotlin 6.8%Language:Swift 6.6%Language:Objective-C 0.6%