mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-07 07:34:43 +00:00
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>
16 lines
298 B
Docker
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
|