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"]