Skip to content

Commit

Permalink
fix: debugging Docker setup (#2616)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tomalak authored Jul 25, 2022
1 parent 29aa3b6 commit aaabe75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile-debug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.18-buster
ENV CGO_ENABLED 1

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

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

Expand Down
2 changes: 1 addition & 1 deletion script/debug-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build() {
log "Building ${SERVICE_NAME} binary"
go env -w GOPROXY="proxy.golang.org,direct"
go mod download
go build -gcflags "all=-N -l" -o /${SERVICE_NAME}
go build -buildvcs=false -gcflags "all=-N -l" -o /${SERVICE_NAME}
}

start() {
Expand Down

0 comments on commit aaabe75

Please sign in to comment.