fix: curl --create-file-mode !local
All checks were successful
/ build (push) Successful in 33s

This commit is contained in:
ange 2024-05-10 12:55:19 +02:00
parent ad23ec2d7f
commit 7320dc37ee
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

6
debian/Dockerfile vendored
View File

@ -8,8 +8,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
jq \
&& rm -rf /var/lib/apt/lists/*
RUN V="$(curl -sSL https://dl.k8s.io/release/stable.txt)" \
&& curl -sSL --create-file-mode 0755 \
-o /usr/local/bin/kubectl \
"https://dl.k8s.io/release/$V/bin/linux/amd64/kubectl"
&& curl -sSLo /usr/local/bin/kubectl \
"https://dl.k8s.io/release/$V/bin/linux/amd64/kubectl" \
&& chmod 0755 /usr/local/bin/kubectl
RUN useradd -m app
USER app