Skip to content
Latchkey

Scratch Image - CI/CD Glossary Definition

The scratch image is an empty base image (FROM scratch) containing nothing at all. It is used to build minimal images for statically linked binaries that need no OS layer.

The scratch image is an empty base image (FROM scratch) containing nothing at all. It is used to build minimal images for statically linked binaries that need no OS layer.

The scratch image is an empty base image (FROM scratch) containing nothing at all. It is used to build minimal images for statically linked binaries that need no OS layer.

Typical use

Go and Rust binaries compiled statically are commonly shipped FROM scratch, producing images just a few megabytes in size.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →