aboutsummaryrefslogtreecommitdiff
path: root/src/cluster-debug/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'src/cluster-debug/Dockerfile')
-rw-r--r--src/cluster-debug/Dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/cluster-debug/Dockerfile b/src/cluster-debug/Dockerfile
new file mode 100644
index 0000000..2a02007
--- /dev/null
+++ b/src/cluster-debug/Dockerfile
@@ -0,0 +1,23 @@
+ARG BASE_VER=latest
+FROM gcr.io/google-containers/pause:latest
+
+FROM golang:1.25-trixie
+WORKDIR /app
+RUN git clone https://git.ofmax.li/go-echo \
+ && cd go-echo \
+ && go build -o /go-echo
+
+FROM public.ecr.aws/x2w2w0z4/base:${BASE_VER}
+ENV DEBIAN_FRONTEND=noninteractive
+RUN apt-get update -y \
+ && apt-get upgrade -y \
+ && apt-get install -y curl dnsutils jq vim kubernetes-client tmux ldap-utils ncat nmap hping3 python3-minimal unattended-upgrades \
+ && unattended-upgrades
+COPY --from=0 /pause /usr/local/bin/pause
+COPY --from=1 /app/go-echo /usr/local/bin/go-echo
+COPY entrypoint.sh /usr/local/bin/entrypoint.sh
+
+USER app
+WORKDIR /opt/app
+ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
+CMD ["pause"]