feat: Would like a way to pre-cache flutter within a docker container
Shorebird used to have shorebird versions use which would download/install a flutter version and customers used this to pre-cache Shorebird artifacts within a docker container.
https://github.com/sncf-connect-tech/shorebird-docker/blob/main/Dockerfile-shorebird-android
We've removed shorebird versions use, so they'd like an equivalent way to do this pre-caching.
e.g. maybe shorebird versions precache X.Y.Z since we still have the "versions" subcommand? This could even call flutter precache as well, although my understanding is flutter precache doesn't actually install everything it needs, just most things (e.g. it won't do the gradle downloads for you).
As a temporary workaround, it should be possible to use:
shorebird release android --flutter-version=X.Y.Z to precache, just expect the command to fail, so it will be hard to tell if the "precaching" parts succeeded.
Made an attempt: https://github.com/shorebirdtech/shorebird/pull/3295
Couldn’t users use a mounted volume to cache all shorebird related artifacts (including flutter installations)?