Repeatable Builds

Earthly is a syntax for defining your build. It works with your existing build system. Get repeatable and understandable builds today.


FROM golang:1.13-alpine3.11


COPY main.go .

RUN go build main.go


Get Earthly It's open source

Where Does Earthly Fit?

Where does earthly fit


  • Clunky
  • Flaky
  • Build guru required


  • Reproducible
  • Understandable
  • No build expert required

With Earthly, all builds are , , and .

Understandable and Repeatable Build Scripts with Earthly

❤️ Makefile + Dockerfile = Earthfile

It's like Makefile and Dockerfile had a baby. Earthly takes some of the best ideas from Makefiles and Dockerfiles and combines them into one specification.


  • Repeatable builds
  • A familiar syntax
  • Caching for more speed

FROM golang:1.13-alpine3.11

RUN apk --update --no-cache add git

WORKDIR /go-example


BUILD +lint

BUILD +docker


COPY main.go .

RUN go build -o build/go-example main.go

SAVE ARTIFACT build/go-example AS LOCAL build/go-example


RUN go get

COPY main.go .

RUN golint -set_exit_status ./...

A simple GO example

Building things

Invoke a build using earth +all.

Reproduce CI failures

Earthly builds are self-contained, isolated and repeatable.

Regardless of whether Earthly runs in your CI or on your laptop, the build will run the same way.

This allows for faster iteration on the build scripts and easier debugging.

No more git commit -m "try again" .

Get Earthly It's open source
  • Photo of Matt Klein

    Matt Klein

    Creator of Envoy Proxy

    Earthly is a pragmatic and incremental solution to a thorny problem that all organizations face. I'm extremely excited about Earthly bringing this functionality to existing container based build systems without requiring an extremely expensive retooling effort on top of something like Bazel.

  • Photo of Florian Leibert

    Florian Leibert

    Founder of D2iQ

    Large organizations like Google or Twitter have solved these problems internally in a way that is idiosyncratic to their engineering processes. Earthly is the first solution to bring the power of repeatable builds at scale to market in a packaging that can fit all organizations.

Why do developers love Earthly?

Building things

Cache build steps automatically

Caching that just works

Earthly uses the same caching technology as docker builds.

If a step of your build would produce the same output as a previously cached run, it uses the cache.

Earthly cache is persisted in a docker volume called earthly-cache on your system.

Builds that work everywhere

No need to ask your team to install protoc, a specific version of Python, Java 1.6 or the .NET Core ecosystem. You only install once, in your Earthfile, and it works for everyone. Or even better, you can just make use of the rich Docker Hub ecosystem.


FROM golang:1.13-alpine3.11

WORKDIR /proto-example


FROM namely/protoc-all:1.29_4

COPY api.proto /defs

RUN --entrypoint -- -f api.proto -l go

SAVE ARTIFACT ./gen/pb-go /pb AS LOCAL pb


COPY go.mod go.sum .

RUN go mod download

COPY +proto/pb pb

COPY main.go ./

RUN go build -o build/proto-example main.go

SAVE ARTIFACT build/proto-example

A simple proto example

Building things

Parallelization that just works

Whenever possible, Earthly automatically executes targets in parallel.

If you build has independent steps, Earthly will
  • Build a directed acyclic graph
  • Execute independent steps in parallel
  • Cache results for future use

Modern import system

Earthly can be used to reference and build targets from other directories or even other repositories.

Try it yourself! No need to clone:


$> earth

$> docker run --rm go-example:latest

Engineers brainstorming on a whiteboard

Earthly is open source and we welcome your contributions

Strong Community

  • 500+ Commits
  • 50+ forks
  • 25+ contributors

Open Source projects benefit from an open and collobarative community. Earthly encourages contributions.

Get Earthly It's open source

More Earthly

  • Questions?

    Join our slack channel. We are on there Monday through Friday and happy to answer questions.

    Get Your Invite
  • GitHub

    Want to see the source? Have you found an issue? Do you have an idea for a Feature or what to contribute? Head over to our github repo.

    Earthly on GitHub
  • Subscribe

    Want to hear about new features? What the latest updates? What to hear about our plans for Earthly Cloud Builds?

    • Photo of Spencer Kimball

      Spencer Kimball

      Creator of Cockroach DB

      By reducing the friction inherent in build tools, Earthly is enabling SaaS companies to move quickly and reduce the context switching overhead in their engineering organizations.