From 209a36f816660b295085210c0533336c392006fc Mon Sep 17 00:00:00 2001 From: Niklas Haiden Date: Sun, 5 Oct 2025 17:58:40 +0200 Subject: [PATCH] improve build script to install docker --- Containerfile | 4 +++- build.sh | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Containerfile b/Containerfile index 4f70efa..530fcc4 100644 --- a/Containerfile +++ b/Containerfile @@ -1,10 +1,12 @@ FROM scratch AS ctx COPY build.sh /build.sh -COPY repos /repos FROM quay.io/centos-bootc/centos-bootc:c10s +COPY repos/docker-ce.repo /etc/yum.repos.d/docker-ce.repo + + RUN --mount=type=tmpfs,dst=/var \ --mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/boot \ diff --git a/build.sh b/build.sh index 461c57a..c7fa172 100755 --- a/build.sh +++ b/build.sh @@ -79,8 +79,6 @@ EOF echo "Installing Docker CE..." -cp /repos/docker-ce.repo /etc/yum.repos.d/docker-ce.repo - dnf config-manager --set-disabled docker-ce-stable # 4. Install Docker packages