Files
linuxkit/alpine/packages/proxy/Dockerfile
David Scott 2ea68b0b3e proxy: add a vsock package based on vsudd
This package supports a more normal Go interface, in particular it has:

  // Listen returns a net.Listener which can accept connections on the given
  // vhan port.
  func Listen(port uint) (net.Listener, error)

Signed-off-by: David Scott <dave.scott@docker.com>
2016-04-15 17:24:56 +01:00

16 lines
270 B
Docker

FROM golang:alpine
RUN apk update && apk add alpine-sdk
RUN mkdir -p /go/src/proxy
WORKDIR /go/src/proxy
COPY ./ /go/src/proxy/
ARG GOARCH
ARG GOOS
RUN go install --ldflags '-extldflags "-fno-PIC"'
RUN [ -f /go/bin/*/proxy ] && mv /go/bin/*/proxy /go/bin/ || true