2024-04-30 16:54:18 +00:00
|
|
|
FROM debian:12-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
ca-certificates \
|
2024-05-10 10:43:39 +00:00
|
|
|
curl \
|
2024-04-30 16:54:18 +00:00
|
|
|
gettext-base \
|
|
|
|
git \
|
|
|
|
jq \
|
2024-11-18 10:41:33 +00:00
|
|
|
openssh-client \
|
2024-04-30 16:54:18 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2024-05-10 10:43:39 +00:00
|
|
|
RUN V="$(curl -sSL https://dl.k8s.io/release/stable.txt)" \
|
2024-05-10 10:55:19 +00:00
|
|
|
&& curl -sSLo /usr/local/bin/kubectl \
|
|
|
|
"https://dl.k8s.io/release/$V/bin/linux/amd64/kubectl" \
|
|
|
|
&& chmod 0755 /usr/local/bin/kubectl
|
2024-05-10 10:01:12 +00:00
|
|
|
RUN useradd -m app
|
|
|
|
USER app
|