Skip to content

Commit e4dd1c6

Browse files
committedDec 1, 2021
Added installing build-base to Dockerfile
- Added installing build-base to Dockerfile because delve requires gcc.
1 parent 32265cd commit e4dd1c6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
############################
1818
FROM golang:alpine AS builder
1919

20-
# Build Delve - This is helpful if you want to do remote debugging by attaching to one of the docker containers remotely
21-
RUN go get github.com/go-delve/delve/cmd/dlv
22-
2320
# Git is required for fetching the dependencies,
2421
# make is required for building.
25-
RUN apk update && apk add --no-cache git make
22+
# build-base is needed because gcc is required by delve
23+
RUN apk update && apk add --no-cache git make build-base
24+
25+
# Build Delve - This is helpful if you want to do remote debugging by attaching to one of the docker containers remotely
26+
RUN go get github.com/go-delve/delve/cmd/dlv
2627

2728
WORKDIR /go/src/dc-ledger
2829
COPY . .

0 commit comments

Comments
 (0)