From e78f5842b64e7a73c79dc6065c93090c758a894b Mon Sep 17 00:00:00 2001 From: Gunjan Vyas Date: Thu, 16 Jan 2025 08:42:25 +0530 Subject: [PATCH] Dockerfile changes to build gvforwarder --- images/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/images/Dockerfile b/images/Dockerfile index c5808e051..46a5ffec8 100644 --- a/images/Dockerfile +++ b/images/Dockerfile @@ -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"]