Skip to content

Commit ec0f8ec

Browse files
committed
Set the GOROOT and GOPATH env variables in Dockerfile
1 parent 247828c commit ec0f8ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM golang:1.10.3-alpine3.8
22

33
ENV BIN=gosec
4+
ENV GOROOT=/usr/local/go
5+
ENV GOPATH=/go
46

57
COPY $BIN /go/bin/$BIN
68
COPY docker-entrypoint.sh /usr/local/bin

0 commit comments

Comments
 (0)