Skip to content

Commit aaabe75

Browse files
authored
fix: debugging Docker setup (#2616)
1 parent 29aa3b6 commit aaabe75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.docker/Dockerfile-debug

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM golang:1.18-buster
22
ENV CGO_ENABLED 1
33

44
RUN apt-get update && apt-get install -y --no-install-recommends inotify-tools psmisc
5-
RUN go get github.com/go-delve/delve/cmd/dlv
5+
RUN go install github.com/go-delve/delve/cmd/dlv@latest
66

77
COPY script/debug-entrypoint.sh /entrypoint.sh
88

script/debug-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build() {
1717
log "Building ${SERVICE_NAME} binary"
1818
go env -w GOPROXY="proxy.golang.org,direct"
1919
go mod download
20-
go build -gcflags "all=-N -l" -o /${SERVICE_NAME}
20+
go build -buildvcs=false -gcflags "all=-N -l" -o /${SERVICE_NAME}
2121
}
2222

2323
start() {

0 commit comments

Comments
 (0)