FROM golang:1.12 ENV GOPATH $HOME/workspace/gopath ENV GOROOT /usr/local/go ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH RUN mkdir -p $GOPATH RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" RUN go install golang.org/x/lint/golint@latest COPY . /src WORKDIR /src RUN make vendor