Skip to content

Commit

Permalink
Dockerfile changes to build gvforwarder
Browse files Browse the repository at this point in the history
Signed-off-by: Gunjan Vyas <[email protected]>
  • Loading branch information
vyasgun committed Jan 21, 2025
1 parent fe2f2d9 commit 409b6c5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions images/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM registry.access.redhat.com/ubi9/go-toolset:1.18 AS build
WORKDIR $APP_ROOT/src
FROM registry.access.redhat.com/ubi9/go-toolset:latest AS build
USER root
WORKDIR /src
COPY . .
RUN make
RUN (cd gvisor-tap-vsock && make)

FROM busybox
COPY images/udhcpc.sh /usr/share/udhcpc/default.script
COPY udhcpc.sh /usr/share/udhcpc/default.script
RUN chmod +x /usr/share/udhcpc/default.script
COPY --from=build /opt/app-root/src/bin/gvforwarder .
COPY --from=build /src/gvisor-tap-vsock/bin/gvforwarder .
ENTRYPOINT ["/gvforwarder"]

0 comments on commit 409b6c5

Please sign in to comment.