feat: update dockerfile

This commit is contained in:
wencaiwulue
2023-08-08 22:28:38 +08:00
parent 6fb80496e6
commit 37c901c633

View File

@@ -3,5 +3,4 @@ RUN curl --location --output delve-1.20.1.tar.gz https://github.com/go-delve/del
&& 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/
FROM busybox
WORKDIR /duct-tape
COPY --from=delve /go/dlv go/bin/
COPY --from=delve /go/dlv /bin/dlv