aws-observability/aws-o11y-recipes

ho11y App's DockerFile is missing GOPROXY=Direct and GIT package. So Docker Build Fails.

elamaran11 opened this issue · 3 comments

ho11y App's Dockerfile is missing the follow statements so the docker build fails for goproxy wilth following error

go: github.com/bitly/go-simplejson@v0.5.0: git init --bare in /go/pkg/mod/cache/vcs/460f3a74af59eb3467f80d2023ccd36e4efe950fa38720c01021f858760cc232: exec: "git": executable file not found in $PATH
The command '/bin/sh -c CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"'' returned a non-zero code: 1

Please add the below after line 1 in ho11y's Dockerfile to get through this error :

 RUN go env -w GOPROXY=direct
 RUN apk add --no-cache git

Thanks. Can you PR it?

@mhausenblas Here is the PR #60
Please approve.

Thanks!