/ kubernetes / Dockerfile.debug
Dockerfile.debug
1 FROM golang:1.25 2 3 # Install Delve (debugger) and Reflex (file watcher) 4 RUN go install github.com/go-delve/delve/cmd/dlv@latest && \ 5 go install github.com/cespare/reflex@latest 6 7 WORKDIR /workspace 8 9 # Set cache env vars to ensuring they are targeted by our volume mounts 10 ENV GOCACHE=/go/.cache/go-build 11 ENV GOMODCACHE=/go/pkg/mod 12 # Expose ports 13 EXPOSE 5758 2345 14 15 # The default command will be overridden by the script, but we can set a safe default 16 CMD ["bash"]