File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,21 @@ ARG TARGETARCH
6
6
7
7
ARG DELVE_VERSION=1.7.2
8
8
9
- RUN curl --location --output delve-$DELVE_VERSION.tar.gz https://github.com/go-delve/delve/archive/v$DELVE_VERSION.tar.gz \
10
- && tar xzf delve-$DELVE_VERSION.tar.gz \
11
- && mv delve-$DELVE_VERSION delve-source
12
-
13
9
# Patch delve to change default for --only-same-user to false
14
10
# Required as `kubectl port-forward` to dlv port is refused.
15
11
# We must install patch(1) to apply the patch.
16
- COPY delve-*.patch .
17
12
RUN apt-get update && apt-get install -y --no-install-recommends \
18
- patch \
19
- && patch -p0 -d delve-source < delve-only-same-user.patch \
13
+ patch
14
+ RUN curl --location --output delve.tar.gz https://github.com/go-delve/delve/archive/v$DELVE_VERSION.tar.gz \
15
+ && tar xzf delve.tar.gz \
16
+ && mv delve-$DELVE_VERSION delve-source
17
+ COPY delve-*.patch .
18
+ RUN patch -p0 -d delve-source < delve-only-same-user.patch \
20
19
&& patch -p0 -d delve-source < delve-pr2684.patch
21
20
22
21
# Produce an as-static-as-possible dlv binary to work on musl and glibc
23
- RUN cd delve-source && CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /go/dlv -ldflags '-s -w -extldflags "-static"' ./cmd/dlv/
22
+ RUN cd delve-source \
23
+ && CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /go/dlv -ldflags '-s -w -extldflags "-static"' ./cmd/dlv/
24
24
25
25
# Now populate the duct-tape image with the language runtime debugging support files
26
26
# The debian image is about 95MB bigger
You can’t perform that action at this time.
0 commit comments