diff options
| author | Max Resnick <max@ofmax.li> | 2025-10-25 23:31:11 -0700 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2025-10-25 23:31:11 -0700 |
| commit | 6b1161f62bf6eee21e3d3b55811a1c60371fdbf5 (patch) | |
| tree | e98c4fae62498a27cebe7f82e1d503b2b4ba3e3b /src/cluster-debug/Dockerfile | |
| parent | 7461c7d0256d4c058cc3b8007aac043be733e286 (diff) | |
| download | grumpy-containers-6b1161f62bf6eee21e3d3b55811a1c60371fdbf5.tar.gz | |
chore: rename cluster, bump base, fix missing user
Diffstat (limited to 'src/cluster-debug/Dockerfile')
| -rw-r--r-- | src/cluster-debug/Dockerfile | 23 |
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"] |