Earthly

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2021 Jul 12 14:50
Editor
Edited
Edited
2024 Feb 7 15:56
Refs
Refs
# Earthfile FROM golang:1.15-alpine3.13 RUN apk --update --no-cache add git WORKDIR /go-example all: BUILD +lint BUILD +docker build: COPY main.go . RUN go build -o build/go-example main.go SAVE ARTIFACT build/go-example AS LOCAL build/go-example lint: RUN go get golang.org/x/lint/golint COPY main.go . RUN golint -set_exit_status ./... docker: COPY +build/go-example . ENTRYPOINT ["/go-example/go-example"] SAVE IMAGE go-example:latest
 
 
 
earthly/earthly
is a build automation tool for the container era. It allows you to execute all your builds in containers. This makes them self-contained, repeatable, portable and parallel. You can use Earthly to create Docker images and artifacts (e.g., binaries, packages, arbitrary files). Earthly builds are self-contained, isolated and repeatable.
earthly/earthly
 
 

Recommendations