fix: add new go10 to the ENV persistant path, re add gomobile

This commit is contained in:
Dan Ballard 2018-07-16 16:03:52 -05:00
parent 4200d0238e
commit 28347ca55e
1 changed files with 11 additions and 0 deletions

View File

@ -74,9 +74,20 @@ RUN set -eux; \
export PATH="/usr/local/go/bin:$PATH"; \
go version
# persist new go in PATH
ENV PATH /usr/local/go/bin:$PATH
# Setup /workspace
RUN mkdir /workspace
# 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
# install gomobile
RUN go get golang.org/x/mobile/cmd/gomobile
RUN gomobile init -ndk $ANDROID_HOME/ndk-bundle/