mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-06 23:01:23 +00:00
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>
16 lines
270 B
Docker
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
|