FROM golang:1.22.4@sha256:c2010b9c2342431a24a2e64e33d9eb2e484af49e72c820e200d332d214d5e61f WORKDIR / COPY ./bin/external-secrets /external-secrets RUN go install github.com/go-delve/delve/cmd/dlv@v1.22.0 RUN chmod +x /go/bin/dlv RUN mv /go/bin/dlv / EXPOSE 30000 # dlv --listen=:30000 --api-version=2 --headless=true exec /app/build/api ENTRYPOINT ["/dlv", "--listen=:30000", "--api-version=2", "--headless=true", "--continue=true", "--accept-multiclient=true", "exec", "/external-secrets", "--"]