Docker

Building on scratch in Docker

DockerBase ImagesScratchadvanced

What this snippet does

scratch is an empty base, valid only for fully static binaries with no runtime dependencies.

Expected output

Successfully built 4a7e1c9b2f80

Why practise typing this

Typing base images code builds muscle memory for the symbols and indentation Docker uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.

More Docker practice

Browse all Docker snippets →