Add Dockerfile for debugger
This commit is contained in:
parent
11f515a0bd
commit
2e905544ae
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue