mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e5d28115ee
- all changes here are attributed to difference in behaviour between, namely: - resolution of secondary test dependencies - prunning of non-Go files Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
319 B
Docker
11 lines
319 B
Docker
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
|
|
COPY --from=builder /go/bin/jsontoml /usr/bin/jsontoml
|