diff --git a/package/Dockerfile b/package/Dockerfile index 10a9caaa..b930c1c8 100644 --- a/package/Dockerfile +++ b/package/Dockerfile @@ -1,3 +1,3 @@ -FROM alpine:3.18.3 +FROM alpine:3.18 COPY bin/rancher-system-agent /usr/bin/ CMD ["rancher-system-agent"] diff --git a/package/Dockerfile.suc b/package/Dockerfile.suc index 07b12e1e..f5e90b27 100644 --- a/package/Dockerfile.suc +++ b/package/Dockerfile.suc @@ -1,14 +1,15 @@ -ARG ALPINE=alpine:3.18.3 +ARG ALPINE=alpine:3.18 FROM ${ALPINE} as kubectl +ENV KUBECTL_VERSION v1.27.10 RUN apk add -U curl RUN ARCH=$(uname -m) && \ if [ "$ARCH" = "x86_64" ]; then ARCH=amd64; fi && \ if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; fi && \ - curl -L -f -o /usr/bin/kubectl https://dl.k8s.io/release/v1.24.0/bin/linux/${ARCH}/kubectl && \ + curl -L -f -o /usr/bin/kubectl https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && \ chmod +x /usr/bin/kubectl RUN /usr/bin/kubectl version --client -ARG ALPINE=alpine:3.18.3 +ARG ALPINE=alpine:3.18 FROM ${ALPINE} RUN mkdir /opt/rancher-system-agent-suc