File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,8 @@ RUN export ARCH=$([[ "$(uname -m)" == "aarch64" ]] && echo "arm64" || echo "amd6
1010 && curl -o kubectl1.30 -L https://storage.googleapis.com/kubernetes-release/release/v1.30.14/bin/linux/${ARCH}/kubectl
1111
1212FROM debian:bookworm-20250908-slim AS prod
13- RUN apt-get update -y
14- # install busybox by building source until it's unavailable by apt-get for v1.36.1 ad no need to link [[
15- RUN apt-get install --no-install-recommends wget build-essential -y && \
16- wget --no-check-certificate https://busybox.net/downloads/busybox-1.36.1.tar.bz2 && \
17- tar -xvjf busybox-1.36.1.tar.bz2 && \
18- cd busybox-1.36.1 && \
19- make defconfig && \
20- make && \
21- make CONFIG_PREFIX="/" install
13+ RUN apt-get update -y && apt-get install -y \
14+ busybox
2215RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/bash cfu
2316# copy all versions of kubectl to switch between them later.
2417COPY --chown=cfu --chmod=775 --from=builder /tmp/kubectl-versions/* /usr/local/bin/
You can’t perform that action at this time.
0 commit comments