Back

[SOLVED] Dockerize Flutter Web App. (NPM).

  • 0
  • Self Hosted
  • Flutter
  • Web
Noah | Bird
27 Nov, 2023, 17:31

I am asking here because I’m really stuck. So I am self hosting an instance of AppWrite on my Linode, following this —> ( https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243 ), I have an AppWrite reverse proxy at api.mydomain.com . I have my flutter build/web files uploaded directly to my server as I don’t want to run flutter/dart on my instance but rather on my machine/laptop. How can I use nginx proxy manager to run my flutter app on web for mydomain.com. ? How do I dockerize the build files (index.html) for flutter web, or can this only be done by creating a Dockerfile and building the full web project?

TL;DR
The user wants to dockerize a Flutter web app using NPM. They are self-hosting an instance of AppWrite on Linode and have a Flutter build/web files uploaded to the server. They are asking for assistance on how to use nginx proxy manager to run the Flutter web app on their domain. A solution is suggested to use static hosting providers with a CDN for better performance. Two tutorials for dockerizing Flutter web apps using Python and nginx are shared.
Drake
27 Nov, 2023, 17:57

Honestly, it's probably better to use some static hosting provider to serve your front end because they have a CDN and maybe edge deployments.

Drake
27 Nov, 2023, 17:59

If you really want to run your front end on your server, you can dockerize it using any web server. I like serve.

Noah | Bird
27 Nov, 2023, 18:13

Thank you Steven! I will definitely check those out. I’m still learning, so I really appreciate it!

Noah | Bird
27 Nov, 2023, 18:13

I have nothing else to add, feel free to close 🙂

Drake
27 Nov, 2023, 18:14

[SOLVED] Dockerize Flutter Web App. (NPM).

Drake
27 Nov, 2023, 18:14

FYI, you can also update the post title to prefix it with [SOLVED]

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more