2 ms·
(Self plug) I had the same thoughts as the author, and made this: https://github.com/andrewbaxter/dinker https://github.com/andrewbaxter/dinker . Like stated in
by rendaw 4y ago
(Self plug) I had the same thoughts as the author, and made this: https://github.com/andrewbaxter/dinker https://github.com/andrewbaxter/dinker . Like stated in the article, if you're doing rust, go, or java all you want is to dump the binary in the image. There's no reason to do the build inside the docker vm in that case, and it's super fast, and only uses dumb filesystem access - no daemons like docker, weird wip container managers like buildah, etc.
The author glossed over actually uploading the resulting image to Fly.io AFAICT. It's not documented, but after a long session with Fly.io support it turns out that they don't actually support OCI manifests - only Docker v2 manifests unlike most popular registries I know of; if you upload an image with an OCI manifest you get a 404 when trying to launch your machine. Skopeo has an option to switch to docker manifests (--format I think?), dinker does docker manifests by default.