fix permissions of GOPATH

This commit is contained in:
Dan Ballard 2018-07-16 17:49:41 -05:00
parent 28347ca55e
commit c3f8499550
1 changed files with 4 additions and 5 deletions

View File

@ -79,14 +79,13 @@ ENV PATH /usr/local/go/bin:$PATH
# Setup /workspace
RUN mkdir /workspace
RUN mkdir /go
# link $GOPATH to persistent /go
RUN ln -sf /go /workspace/go
# Set up GOPATH in /workspace
ENV GOPATH /workspace/go
ENV PATH $GOPATH/bin:$PATH
# link $GOPATH to persistent /go
RUN mkdir /go
RUN ln -sf /go /workspace/go
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" "$GOPATH/pkg" && chmod -R 777 "$GOPATH"
# install gomobile
RUN go get golang.org/x/mobile/cmd/gomobile