我正在尝试在golang中获取一个外部库,但是当我在下面的命令中触发时:


FROM golang:1.8-alpine

RUN go get gopkg.in/natefinch/lumberjack.v2

EXPOSE 8080

它给出以下错误:


go: missing Git command. See https://golang.org/s/gogetcmd

package github.com/gin-gonic/gin: exec: "git": executable file not found in $PATH

我正在使用golang:1.8-alpine。请帮助解决此问题。