Hacker News new | ask | show | jobs
by leotaku 1421 days ago
I don't know about BuildKit and `docker buildx`, but I've been using an approach similar to what is outlined in paragraph two to generate static executables for one of my projects.

I use a multistage build to generate a podman/docker image that contains all my build artifacts and then just copy them out of the container onto my host system. What advantages would there be in using BuildKit for this sort of thing?

1 comments

Essentially the same thing in one step. Can avoid some of the permission issue gotchas with `docker cp`.