16 lines
482 B
Docker
16 lines
482 B
Docker
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/*
|
|
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
|