There are some OCI image build applications like buildah and podman that do not respect .dockerignore. If the build context is initialized with a locally built ./artifacts folder, there might be a libc / musl mismatch, and the integration tests will fail with file not found.
This commit ensures the build context is cleaned on every image build, ensuring the binaries in the artifacts folder are rebuilt, and built against the right dynamic link. The commit also pins the Alpine image version, and thus pins the musl version that to be shared across the build and runtime images.
There are some OCI image build applications like
buildah
andpodman
that do not respect.dockerignore
. If the build context is initialized with a locally built./artifacts
folder, there might be alibc
/musl
mismatch, and the integration tests will fail withfile not found
.This commit ensures the build context is cleaned on every image build, ensuring the binaries in the
artifacts
folder are rebuilt, and built against the right dynamic link. The commit also pins the Alpine image version, and thus pins themusl
version that to be shared across the build and runtime images.