Dockerfile (#269)

Provide docker images for go-toml tools.

Ref: https://github.com/pelletier/go-toml/pull/267
This commit is contained in:
Thomas Pelletier
2019-04-10 13:43:12 +01:00
committed by GitHub
parent 63909f0a90
commit d95bfe020e
5 changed files with 57 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM golang:1.12-alpine3.9 as builder
WORKDIR /go/src/github.com/pelletier/go-toml
COPY . .
ENV CGO_ENABLED=0
ENV GOOS=linux
RUN go install ./...
FROM scratch
COPY --from=builder /go/bin/tomll /usr/bin/tomll
COPY --from=builder /go/bin/tomljson /usr/bin/tomljson