# 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
Creator
Creator
Seonglae ChoCreated
Created
2021 Jul 12 14:50Editor
Editor
Seonglae ChoEdited
Edited
2024 Feb 7 15:56Refs
Refs
