1FROM golang:1.12-alpine3.9 as builder
2WORKDIR /go/src/github.com/pelletier/go-toml
3COPY . .
4ENV CGO_ENABLED=0
5ENV GOOS=linux
6RUN go install ./...
7
8FROM scratch
9COPY --from=builder /go/bin/tomll /usr/bin/tomll
10COPY --from=builder /go/bin/tomljson /usr/bin/tomljson
11COPY --from=builder /go/bin/jsontoml /usr/bin/jsontoml
12