Files
linuxkit/alpine/packages/diagnostics/Dockerfile
Justin Cormack 301e633ad3 Include the Go binary in the hash of the go build base
As this is not installed via apk it was not being included in the
checksum.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-09-09 15:46:23 +01:00

14 lines
313 B
Docker

FROM mobylinux/alpine-build-go:30067067003d565887d7efe533eba03ed46038d2
RUN mkdir -p /go/src/diagnostics
WORKDIR /go/src/diagnostics
COPY . /go/src/diagnostics
ARG GOARCH
ARG GOOS
RUN go install --ldflags '-extldflags "-fno-PIC"'
RUN [ -f /go/bin/*/diagnostics ] && mv /go/bin/*/diagnostics /go/bin/ || true