Closed
Description
Attempting to run go get
in the current golang:alpine image to grab the dep
command and running into the following error:
github.com/golang/dep (download)
go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/golang/dep/cmd/dep: exec: "git": executable file not found in $PATH
The command '/bin/sh -c go get -d -v github.com/golang/dep/cmd/dep' returned a non-zero code: 1
Issue persists after complete container and image wipe.
Dockerfile to reproduce (for me at least :D ) :
FROM golang:alpine
WORKDIR /go/src/github.com/MatthewEdge/web
COPY . .
# Dependency install
RUN go get -u github.com/golang/dep/cmd/dep
RUN $GOPATH/bin/dep ensure -vendor-only
RUN go install
CMD ["web"]
The application being run is the hello world HTTP server for Go. I'm currently getting around this by doing an apk update && apk install git
at the top of this file but it seemed odd that this image wouldn't have git installed by default?
Thoughts?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels