diff --git a/Dockerfile.debug b/Dockerfile.debug new file mode 100644 index 0000000..2604d07 --- /dev/null +++ b/Dockerfile.debug @@ -0,0 +1,14 @@ +FROM golang:1.22-alpine + +RUN apk add --no-cache ffmpeg su-exec ca-certificates olm olm-dev bash jq yq curl git build-base +RUN go install github.com/go-delve/delve/cmd/dlv@latest + +COPY . /src +WORKDIR /src +RUN go get + +ENV UID=1337 \ + GID=1337 + +CMD ["dlv", "debug", "--headless", "--listen=:2345", "--api-version=2", "--accept-multiclient"] +