FROM golang:1.22.2@sha256:c4fb952e712efd8f787bcd8e53fd66d1d83b7dc26adabc218e9eac1dbf776bdf 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", "--"]