mirror of
https://github.com/k8snetworkplumbingwg/whereabouts.git
synced 2025-06-03 06:42:26 +00:00
17 lines
502 B
Docker
17 lines
502 B
Docker
FROM golang:1.13
|
|
ADD . /usr/src/whereabouts
|
|
|
|
ENV GOARCH "arm64"
|
|
ENV GOOS "linux"
|
|
|
|
RUN mkdir -p $GOPATH/src/github.com/k8snetworkplumbingwg/whereabouts
|
|
WORKDIR $GOPATH/src/github.com/k8snetworkplumbingwg/whereabouts
|
|
COPY . .
|
|
RUN ./hack/build-go.sh
|
|
|
|
FROM arm64v8/alpine:latest
|
|
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/whereabouts
|
|
COPY --from=0 /go/src/github.com/k8snetworkplumbingwg/whereabouts/bin/whereabouts .
|
|
COPY script/install-cni.sh .
|
|
CMD ["/install-cni.sh"]
|