Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit c2cb796

Browse files
johnoloughlinEoghan Russell
authored and
Eoghan Russell
committed
adding Dockerfile
Signed-off-by: John O'Loughlin <[email protected]>
1 parent c6c4001 commit c2cb796

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: docker/userspacecni/Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM ligato/vpp-base:23.02 as builder
2+
COPY . /root/userspace-cni-network-plugin
3+
WORKDIR /root/userspace-cni-network-plugin
4+
RUN apt update -y
5+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y binutils wget make git
6+
RUN wget -qO- https://golang.org/dl/go1.20.1.linux-amd64.tar.gz | tar -C /usr/local -xz
7+
ENV PATH="${PATH}:/usr/local/go/bin"
8+
RUN go mod download
9+
RUN make generate
10+
RUN go mod tidy
11+
RUN make build
12+
#End of builder container
13+
14+
# Copy build userspace cni bin to a small deployer container
15+
FROM ubuntu:22.04
16+
RUN mkdir -p /root/userspace-cni-network-plugin/userspace
17+
COPY --from=builder /root/userspace-cni-network-plugin/userspace/userspace /root/userspace-cni-network-plugin/userspace/userspace

0 commit comments

Comments
 (0)