Content
@
0 reply
0 recast
2 reactions
nicholas 🧨
@nicholas
Are you a big docker user? I haven't used it much; it always feels so bloated. Set me straight?
11 replies
0 recast
27 reactions
Britt Kim
@brittkim.eth
Some ways to deal with the bloat. Use minimal base images. So something like alpine instead of ubuntu. Use multistage builds for dependencies on other images. This will keep you from pulling a ton of junk into the final image. Remove unneeded files though always include the dockerfile in the final image. Otherwise, you’re just making a mystery box that works without anyone knowing how. There are other optimizations but I typically am satisfied with the image after this.
0 reply
0 recast
1 reaction