2024-05-10 10:39:43 +00:00
|
|
|
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"
|
|
|
|
|
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 \
|
|
|
|
gettext-base \
|
|
|
|
git \
|
|
|
|
jq \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2024-05-10 10:39:43 +00:00
|
|
|
COPY --from=kubectl --chmod=0755 /kubectl /usr/local/bin/kubectl
|
2024-05-10 10:01:12 +00:00
|
|
|
RUN useradd -m app
|
|
|
|
USER app
|