intel-device-plugins-for-ku.../build/docker/lib/nfdhook_end.docker
Mikko Ylinen e02c480ab7 images: use buildkit again
The Toybox images had two issues:

1. Distroless does not support /bin -> /usr/bin so we needed to
create it manually to get /bin/bash for Toybox. However, with this
Openshift image validation complains that we are touching the "base"
image.

2. We could not use buildkit since it fails with /bin symlink
copied over /bin directory from Distroless.

The simple fix is just to move away from all /bin/sh and /bin/bash
and use "/usr/bin/env bash" to resolve the path instead. This allows
to keep /bin untouched.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-12-08 08:01:22 +02:00

7 lines
236 B
Docker

#define xstring(s) xxstring(s)
#define xxstring(SRC) string(cp -a SRC /etc/kubernetes/node-feature-discovery/source.d/)
#define string(s) #s
COPY --from=builder /install_root /
ENTRYPOINT [ "/usr/bin/sh", "-c", xstring(_ENTRYPOINT_) ]