From bf8cfc456658bb957cc32f6be69d53a0f6a7a0f6 Mon Sep 17 00:00:00 2001 From: "caochen.cao" Date: Tue, 9 Jan 2024 15:09:36 +0800 Subject: [PATCH] add kuscia-deps.Dockerfile --- dockerfiles/kuscia-deps.Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dockerfiles/kuscia-deps.Dockerfile diff --git a/dockerfiles/kuscia-deps.Dockerfile b/dockerfiles/kuscia-deps.Dockerfile new file mode 100644 index 0000000..63823c8 --- /dev/null +++ b/dockerfiles/kuscia-deps.Dockerfile @@ -0,0 +1,23 @@ +ARG ARCH=amd64 +ARG K3S_VER=v1.26.11-k3s2 +ARG K3S_IMAGE=rancher/k3s:${K3S_VER}-${ARCH} +FROM ${K3S_IMAGE} as k3s-image + +FROM openanolis/anolisos:8.8 + +RUN yum install -y git glibc-static wget gcc make && \ + yum clean all + +RUN mkdir -p /image/home/kuscia/bin && \ + mkdir -p /image/bin/aux && \ + curl https://proot.gitlab.io/proot/bin/proot -o /image/home/kuscia/bin/proot && chmod u+x /image/home/kuscia/bin/proot + +WORKDIR /tmp + +COPY --from=k3s-image /bin/k3s /bin/containerd /bin/containerd-shim-runc-v2 /bin/runc /bin/cni /image/home/kuscia/bin/ +COPY --from=k3s-image /bin/aux /image/bin/aux + + +RUN wget https://github.com/krallin/tini/releases/download/v0.19.0/tini -O /image/home/kuscia/bin/tini && \ + chmod +x /image/home/kuscia/bin/tini +