Set the GOROOT and GOPATH env variables in Dockerfile

This commit is contained in:
Cosmin Cojocar 2018-08-21 09:58:26 +02:00
parent 247828cfa5
commit ec0f8ec9d6

View file

@ -1,6 +1,8 @@
FROM golang:1.10.3-alpine3.8
ENV BIN=gosec
ENV GOROOT=/usr/local/go
ENV GOPATH=/go
COPY $BIN /go/bin/$BIN
COPY docker-entrypoint.sh /usr/local/bin