add delve as debugger and expose it
This commit is contained in:
parent
08e65722ce
commit
98b9fe6555
@ -4,7 +4,7 @@ COPY . .
|
||||
ENV GOPRIVATE=gitea.pena/PenaSide/linters-golang
|
||||
ENV GOINSECURE=gitea.pena/PenaSide/linters-golang
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o heruvym cmd/main.go
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -gcflags "all=-N -l" -o heruvym cmd/main.go
|
||||
|
||||
FROM gitea.pena/penadevops/container-images/alpine:main
|
||||
COPY --from=builder /app/heruvym .
|
||||
|
@ -4,10 +4,12 @@ services:
|
||||
image: gitea.pena:3000/penaside/heruvym/staging:$GITHUB_RUN_NUMBER
|
||||
ports:
|
||||
- 10.7.0.6:1487:3000
|
||||
- 10.7.0.6:2345:2345
|
||||
labels:
|
||||
com.pena.upload: true
|
||||
com.pena.allowed_headers: content-type,authorization,response-type
|
||||
tty: true
|
||||
command: /dlv --listen=:2345 --headless=true --log=true --log-output=debugger,debuglineerr,gdbwire,lldbout,rpc --accept-multiclient --api-version=2 exec ./heruvym
|
||||
environment:
|
||||
HTTP_PORT: 3000
|
||||
HTTP_HOST: 0.0.0.0
|
||||
|
Loading…
Reference in New Issue
Block a user