Skip to content

danielrehha/flutter-web-dockerfile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

A demo how to setup flutter web in docker container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 51.5%
  • HTML 18.0%
  • Dockerfile 15.6%
  • Kotlin 7.2%
  • Swift 7.0%
  • Objective-C 0.7%