mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-05 09:14:04 +00:00
Used to proxy vsock 2376 <-> /var/run/docker.sock in the Moby VM. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
16 lines
269 B
Docker
16 lines
269 B
Docker
FROM golang:alpine
|
|
|
|
RUN apk update && apk add alpine-sdk
|
|
|
|
RUN mkdir -p /go/src/vsudd
|
|
WORKDIR /go/src/vsudd
|
|
|
|
COPY . /go/src/vsudd/
|
|
|
|
ARG GOARCH
|
|
ARG GOOS
|
|
|
|
RUN go install --ldflags '-extldflags "-fno-PIC"'
|
|
|
|
RUN [ -f /go/bin/*/vsudd ] && mv /go/bin/*/vsudd /go/bin/ || true
|