mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2026-07-12 11:17:44 +00:00
17 lines
516 B
Docker
17 lines
516 B
Docker
# This Dockerfile is used to build the image available on DockerHub
|
|
FROM golang:1.18 as build
|
|
|
|
# Add everything
|
|
ADD . /usr/src/multus-cni
|
|
|
|
RUN cd /usr/src/multus-cni && \
|
|
./hack/build-go.sh
|
|
|
|
FROM debian:stable-slim
|
|
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni
|
|
COPY --from=build /usr/src/multus-cni/bin /usr/src/multus-cni/bin
|
|
COPY --from=build /usr/src/multus-cni/LICENSE /usr/src/multus-cni/LICENSE
|
|
WORKDIR /
|
|
|
|
ENTRYPOINT [ "/usr/src/multus-cni/bin/multus-daemon" ]
|