mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
6 lines
339 B
Docker
6 lines
339 B
Docker
FROM golang:1.23 as delve
|
|
RUN curl --location --output delve-1.23.1.tar.gz https://github.com/go-delve/delve/archive/v1.23.1.tar.gz \
|
|
&& tar xzf delve-1.23.1.tar.gz
|
|
RUN cd delve-1.23.1 && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/dlv -ldflags '-extldflags "-static"' ./cmd/dlv/
|
|
FROM busybox
|
|
COPY --from=delve /go/dlv /bin/dlv |