2 ms·
This is huge, thanks for the lead. Others should note it's still experimental and your build command may fail with > "--squash" is only supported on a Docker d
by imglorp 5y ago
This is huge, thanks for the lead. Others should note it's still experimental and your build command may fail with
> "--squash" is only supported on a Docker daemon with experimental features enabled
Up til now, our biggest improvement was with "FROM SCRATCH".
- selfup 5y agoGood to know. `FROM scratch` is such a breath of fresh air for compiled apps. No need for Alpine if I just need to run a binary!
- jrockway 5y agoDo keep in mind that you might want a set of trusted TLS certificates and the timezone database. Both will be annoying runtime errors when you don't trust https://api.example.com https://api.example.com or try to return a time to a user in their preferred time zone. Distroless includes these.
- selfup 5y agoYea CA certs are the first pain point I hit. Worth the hurdle. Noted on the timezone. Never really thought about that one. Thanks!
- gavinray 5y agoNo problem. > Others should note it's still experimental and your build command may fail with You might try "docker buildx build", to use the BuildKit client -- squash isn't experimental in that one I believe =) https://docs.docker.com/engine/reference/commandline/buildx_build/ https://docs.docker.com/engine/reference/commandline/buildx_...