-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix docker build #769
fix docker build #769
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I would use the existing value inside the pubspec.yaml to get the flutter version
As a small note, you have to change the right port area on the page to port 80 with the docker run command: https://butterfly.linwood.dev/downloads/selfhosting/ The default port of nginx is the port 80 |
Oh yeah, feel free to change it too, you can find it in I will test it once I'm on my linux computer |
All right, I'll edit the mdx file and add the EXPOSE 80. I would not suggest adding https support for the reverse proxy because SSL certificates must first be obtained via letś encrypt or zerossl via the acme program. In my case, I have a second Nginx as a reverse proxy to make my other services accessible under the same domain. |
Looks good now, just add "--wasm" to the flutter build to allow the new webassembly files that should allow better performance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, for this we also need to change the nginx.conf maybe to allow extra permissions, I will merge it now and we could work from there.
see https://docs.flutter.dev/platform-integration/web/wasm for the configuration details
thanks for the contribution :) Some next steps we could do:
|
No description provided.