mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-19 04:57:13 +00:00
This should enable s390x support for all package Signed-off-by: Rolf Neugebauer <rolf.neugebauer@gmail.com>
16 lines
562 B
Docker
16 lines
562 B
Docker
FROM linuxkit/alpine:96ad1eb5ec262b4cd0eef574cdc0b225b502d9ee AS mirror
|
|
|
|
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-forwarder.linux
|
|
|
|
FROM scratch
|
|
COPY --from=mirror /go/src/github.com/moby/vpnkit/go/build/vpnkit-forwarder.linux /vpnkit-forwarder
|
|
CMD ["/vpnkit-forwarder"]
|