From f3aafdbe5abc4f93c801b4c2252d0fe335305412 Mon Sep 17 00:00:00 2001 From: Ronny Baturov Date: Mon, 16 Sep 2024 17:13:14 +0300 Subject: [PATCH] Fixing empty tuned submodule when using Dockerfile (#1159) Since we are using a multi stage builds in the Dockerfile (2 builds), and we need to use the tuned submodule also in the second layer, we must ensure we copy the directory from the builder image (where we initialize the tuned submodule), to the final image. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e9a2e420b..2bbbbe6b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY --from=builder /go/src/github.com/openshift/cluster-node-tuning-operator/_o COPY --from=builder /go/src/github.com/openshift/cluster-node-tuning-operator/_output/gather-sysinfo /usr/bin/ ENV ASSETS_DIR=/root/assets -COPY assets $ASSETS_DIR +COPY --from=builder /go/src/github.com/openshift/cluster-node-tuning-operator/assets $ASSETS_DIR COPY hack/dockerfile_install_support.sh /tmp RUN /bin/bash /tmp/dockerfile_install_support.sh