fix permissions of GOPATH
This commit is contained in:
parent
28347ca55e
commit
c3f8499550
|
@ -79,14 +79,13 @@ ENV PATH /usr/local/go/bin:$PATH
|
||||||
|
|
||||||
# Setup /workspace
|
# Setup /workspace
|
||||||
RUN mkdir /workspace
|
RUN mkdir /workspace
|
||||||
|
RUN mkdir /go
|
||||||
|
# link $GOPATH to persistent /go
|
||||||
|
RUN ln -sf /go /workspace/go
|
||||||
# Set up GOPATH in /workspace
|
# Set up GOPATH in /workspace
|
||||||
ENV GOPATH /workspace/go
|
ENV GOPATH /workspace/go
|
||||||
ENV PATH $GOPATH/bin:$PATH
|
ENV PATH $GOPATH/bin:$PATH
|
||||||
|
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" "$GOPATH/pkg" && chmod -R 777 "$GOPATH"
|
||||||
# link $GOPATH to persistent /go
|
|
||||||
RUN mkdir /go
|
|
||||||
RUN ln -sf /go /workspace/go
|
|
||||||
|
|
||||||
# install gomobile
|
# install gomobile
|
||||||
RUN go get golang.org/x/mobile/cmd/gomobile
|
RUN go get golang.org/x/mobile/cmd/gomobile
|
||||||
|
|
Loading…
Reference in New Issue