Skip to Content
0 likes
Cut Rebuild Time With a BuildKit Cache Mount Level: Advanced

Add a BuildKit cache mount to pip install so a changed requirements file downloads only the new packages. After this, a dependency change no longer means downloading everything again.

0 likes
Multi-Stage Node or Go Image Under 50 MB Level: Advanced

Build a Go service in a multi-stage Dockerfile and ship it in an image well under 50 MB, with a non-root user and a health check. After this, you know why Go gets that small and Node does not.

0 likes
Cap CPU and Memory So One Container Can't Starve the Host Level: Advanced

Set CPU and memory limits, watch them work, change them on a running container and set them in Compose. After this, one busy container cannot take the whole machine.