feat: curl
This commit is contained in:
parent
0923bb7500
commit
ad23ec2d7f
16
debian/Dockerfile
vendored
16
debian/Dockerfile
vendored
@ -1,21 +1,15 @@
|
||||
FROM debian:12-slim as kubectl
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN V="$(curl -sSL https://dl.k8s.io/release/stable.txt)" \
|
||||
&& curl -sSL \
|
||||
-o /kubectl "https://dl.k8s.io/release/$V/bin/linux/amd64/kubectl"
|
||||
|
||||
FROM debian:12-slim
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
gettext-base \
|
||||
git \
|
||||
jq \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=kubectl --chmod=0755 /kubectl /usr/local/bin/kubectl
|
||||
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"
|
||||
RUN useradd -m app
|
||||
USER app
|
||||
|
Loading…
Reference in New Issue
Block a user