You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pretty much lets you create a temporary build image, then copy an artifact from the build image over to your actual target image, all in one Dockerfile. Have you considered that approach? I got the same size from that, but I feel the Dockerfile is "cleaner".
tom@tomian:~/code/mini-docker-rust$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
mdrr latest 6dbc2cd0676e 11 seconds ago 7.52MB
mdr latest 0f65f756e698 9 minutes ago 7.52MB
<snip>
The text was updated successfully, but these errors were encountered:
Hi!
Docker features multi-stage builds nowadays: https://docs.docker.com/develop/develop-images/multistage-build/
This pretty much lets you create a temporary build image, then copy an artifact from the build image over to your actual target image, all in one Dockerfile. Have you considered that approach? I got the same size from that, but I feel the Dockerfile is "cleaner".
The text was updated successfully, but these errors were encountered: