Skip to content

Commit

Permalink
Dockerfile changes to build gvforwarder
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasgun committed Jan 16, 2025
1 parent 8e45dda commit 09652f1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 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
COPY . .
RUN make
FROM registry.access.redhat.com/ubi9/go-toolset:1.22.9 AS build
USER root
WORKDIR /
COPY . /
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 gvisor-tap-vsock/bin/gvforwarder .
ENTRYPOINT ["/gvforwarder"]

0 comments on commit 09652f1

Please sign in to comment.