mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-30 04:27:09 +00:00
except for bpftrace, since it does not compile: https://github.com/linuxkit/linuxkit/pull/3230 Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
16 lines
705 B
Docker
16 lines
705 B
Docker
FROM linuxkit/alpine:518c2ed0f398c5508969ac5e033607201fb419ed AS build
|
|
|
|
RUN apk add --no-cache go musl-dev git build-base
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
ENV COMMIT=db7b7b0f8147f29360d69dc81af9e2877647f0de
|
|
|
|
RUN git clone https://github.com/moby/vpnkit.git /go/src/github.com/moby/vpnkit && \
|
|
cd /go/src/github.com/moby/vpnkit && \
|
|
git checkout $COMMIT && \
|
|
cd go && \
|
|
make build/vpnkit-iptables-wrapper.linux build/vpnkit-expose-port.linux
|
|
|
|
FROM scratch
|
|
COPY --from=build /go/src/github.com/moby/vpnkit/go/build/vpnkit-iptables-wrapper.linux /usr/bin/vpnkit-iptables-wrapper
|
|
COPY --from=build /go/src/github.com/moby/vpnkit/go/build/vpnkit-expose-port.linux /usr/bin/vpnkit-expose-port
|