1- FROM docker.io/alpine:3.15.4 as builder
2-
1+ FROM docker.io/alpine:3.23.3 AS builder
32ARG ARCH
3+ ARG CRICTL_VERSION=1.33.0
44
5- RUN apk update && apk add curl binutils build-base
5+ RUN apk update && apk add curl binutils build-base openssl-dev openssl-libs-static
66
77RUN if [ $ARCH == "amd64" ]; then curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable-x86_64-unknown-linux-musl -y; fi
88
9- RUN if [ $ARCH == "arm64" ]; then curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.61.0 -aarch64-unknown-linux-musl -y; fi
9+ RUN if [ $ARCH == "arm64" ]; then curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -aarch64-unknown-linux-musl -y; fi
1010
1111RUN ls -a /root/.cargo/bin
1212
@@ -17,10 +17,10 @@ WORKDIR "/app-build"
1717ENV PATH=/root/.cargo/bin:${PATH}
1818RUN cargo build --verbose --release
1919
20- RUN curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.22.0 /crictl-v1.22.0 -linux-$ARCH.tar.gz --output crictl-v1.22.0 -linux-$ARCH.tar.gz
21- RUN tar zxvf crictl-v1.22.0 -linux-$ARCH.tar.gz
20+ RUN curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/v${CRICTL_VERSION} /crictl-v${CRICTL_VERSION} -linux-$ARCH.tar.gz --output crictl-v${CRICTL_VERSION} -linux-$ARCH.tar.gz
21+ RUN tar zxvf crictl-v${CRICTL_VERSION} -linux-$ARCH.tar.gz
2222
23- FROM docker.io/alpine:3.15.4
23+ FROM docker.io/alpine:3.23.3
2424
2525RUN apk update && apk add procps
2626
@@ -32,4 +32,4 @@ RUN mv core-dump-composer cdc
3232
3333WORKDIR "/app"
3434COPY --from=builder /app-build/crictl ./
35- CMD ["./core-dump-agent" ]
35+ CMD ["./core-dump-agent" ]
0 commit comments