Add Dockerfile for debugger

This commit is contained in:
Jarno Rankinen 2024-03-24 14:03:58 +02:00
parent 11f515a0bd
commit 2e905544ae
1 changed files with 14 additions and 0 deletions

14
Dockerfile.debug Normal file
View File

@ -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"]