feat: optimize code

This commit is contained in:
fengcaiwen
2023-08-04 14:39:42 +08:00
parent 97042d6ed0
commit 5f08427105
6 changed files with 214 additions and 214 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.19 as delve
FROM golang:1.20 as delve
RUN curl --location --output delve-1.20.1.tar.gz https://github.com/go-delve/delve/archive/v1.20.1.tar.gz \
&& tar xzf delve-1.20.1.tar.gz
RUN cd delve-1.20.1 && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/dlv -ldflags '-extldflags "-static"' ./cmd/dlv/