File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1- FROM debian:trixie-20251229-slim AS prod
2- ARG TARGETPLATFORM
3- RUN /sbin/useradd --home /home/cfu --shell /bin/bash cfu
4- COPY --chown=cfu --chmod=775 cf-deploy-kubernetes.sh /cf-deploy-kubernetes
5- COPY --chown=cfu --chmod=775 template.sh /template.sh
6- COPY --from=busybox:1.37.0-glibc /bin/busybox /usr/bin/busybox
7- RUN busybox --install
1+ # DHI source: https://hub.docker.com/repository/docker/octopusdeploy/dhi-debian-base/customizations/8303889275873263714
2+ FROM octopusdeploy/dhi-debian-base:trixie_cf-classic-deploy-kubernetes-debian13 AS prod
3+ COPY --chown=nonroot --chmod=775 cf-deploy-kubernetes.sh /cf-deploy-kubernetes
4+ COPY --chown=nonroot --chmod=775 template.sh /template.sh
85# ⚠️ We support 3 most recent minor versions: https://kubernetes.io/releases/
96# Please update `./cf-deploy-kubernetes.sh` accordingly.
10- ADD --chown=cfu --chmod=775 https://dl.k8s.io/release/v1.34.3 /bin/${TARGETPLATFORM} /kubectl /usr/local/bin/kubectl1.34
11- ADD --chown=cfu --chmod=775 https://dl.k8s.io/release/v1.33.7 /bin/${TARGETPLATFORM} /kubectl /usr/local/bin/kubectl1.33
12- ADD --chown=cfu --chmod=775 https://dl.k8s.io/release/v1.32.11 /bin/${TARGETPLATFORM} /kubectl /usr/local/bin/kubectl1.32
7+ COPY --chown=nonroot --chmod=775 --from=octopusdeploy/dhi-kubectl:1.34-debian13 /usr/local /bin/kubectl /usr/local/bin/kubectl1.34
8+ COPY --chown=nonroot --chmod=775 --from=octopusdeploy/dhi-kubectl:1.33-debian13 /usr/local /bin/kubectl /usr/local/bin/kubectl1.33
9+ COPY --chown=nonroot --chmod=775 --from=octopusdeploy/dhi-kubectl:1.32-debian13 /usr/local /bin/kubectl /usr/local/bin/kubectl1.32
1310# ⚠️ Defaults to the latest version. Please update with new versions as needed.
1411RUN ln -s /usr/local/bin/kubectl1.34 /usr/local/bin/kubectl
1512
1613WORKDIR /
17- USER cfu
14+ USER nonroot
1815CMD ["bash" ]
Original file line number Diff line number Diff line change 1- version : 17.0.1
1+ version : 17.0.2
You can’t perform that action at this time.
0 commit comments