site-www
site-www copied to clipboard
Add a page on how to run Dart in Docker
/cc @mit-mit @kevmoo
I'm marking this as no longer blocked due to the release of the official Dart docker image which is defined in https://github.com/dart-lang/dart-docker
@domesticmouse I'd like to get something documented here, but don't have enough experience to know of what's important to note or challenges developers may face. In using Docker for dart-services or otherwise, has anything come up that may be worth documenting as part of this work? Or concepts that you think are important to cover?
The primary extra thing I can think of is discussing AOT compiling your Dart app and potentially(?) when that does or does not make sense in this context.
Thanks for your thoughts!!
Hilariously, the docker based service I maintain doesn't use AOT, mainly for historical reasons.
AOT compilation for docker hosted Dart applications reduces start up time, which is important for rapid scaling in hosted environments like Cloud Run. All the same arguments that the GraalVM folks are using for dockerised Java apps, basically.
@kevmoo probably has a lot more information to add here
Not sure if I have a LOT more info to add. The docs on the official site are great. My only concern is to avoid duplicating content where we'd have to keep multiple artifacts in sync.
We should absolutely make sure we have good SEO around Dart + Docker. I'm not convinced (yet) that we need a dedicated page here (maybe just a mention somewhere else?) but happy to have my mind changed!
If you think the docs on https://hub.docker.com/_/dart are satisfactory and covers everything needed, then I'm happy. It seems to come up consistently in various searches as well.
We do link to it in https://dart.dev/get-dart but perhaps we can add a link or two from elsewhere, including our still lacking (https://github.com/dart-lang/site-www/issues/3671 😢) server docs.
Sgtm