github.com/saucelabs/saucectl@v0.175.1/Dockerfile (about) 1 # Build the binary here 2 FROM golang:1.21 as builder 3 4 WORKDIR /app 5 6 COPY go.mod go.sum ./ 7 RUN go mod download && go mod verify 8 9 ARG LD_FLAGS 10 11 COPY . . 12 RUN go build -ldflags="${LD_FLAGS}" cmd/saucectl/saucectl.go 13 14 # Release the binary here 15 FROM ubuntu:latest 16 17 RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates 18 19 COPY --from=builder /app/saucectl /usr/local/bin/saucectl