mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-01 15:08:40 +00:00
15 lines
550 B
Docker
15 lines
550 B
Docker
FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS mirror
|
|
|
|
RUN apk add --no-cache go musl-dev git build-base
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin GO111MODULE=off
|
|
ENV VIRTSOCK_COMMIT=f1e32d3189e0dbb81c0e752a4e214617487eb41f
|
|
|
|
RUN git clone https://github.com/linuxkit/virtsock.git /go/src/github.com/linuxkit/virtsock && \
|
|
cd /go/src/github.com/linuxkit/virtsock && \
|
|
git checkout $VIRTSOCK_COMMIT && \
|
|
make vsudd
|
|
|
|
FROM scratch
|
|
COPY --from=mirror /go/src/github.com/linuxkit/virtsock/bin/vsudd.linux /vsudd
|
|
ENTRYPOINT ["/vsudd"]
|