Skip to content

Commit 6c34f46

Browse files
build: use DHI sources (#85)
* build: use `kubectl` from DHI * build: use base image from DHI
1 parent ff59a9d commit 6c34f46

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

Dockerfile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
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.
1411
RUN ln -s /usr/local/bin/kubectl1.34 /usr/local/bin/kubectl
1512

1613
WORKDIR /
17-
USER cfu
14+
USER nonroot
1815
CMD ["bash"]

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 17.0.1
1+
version: 17.0.2

0 commit comments

Comments
 (0)