Files
linuxkit/alpine/packages/diagnostics/Dockerfile
David Scott 578c037e81 moby: rewrite diagnostics server in Go
This will make it easier to add a vsock interface as well as a regular
TCP/IP one.

As a side-effect, the server is now able to handle more than one concurrent
request!

Signed-off-by: David Scott <dave.scott@docker.com>
2016-04-15 16:09:54 +01:00

16 lines
298 B
Docker

FROM golang:alpine
RUN apk update && apk add alpine-sdk
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