From b151e319bb03130025ba66f2af7f1d62dd203092 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 17 Mar 2021 16:12:46 -0700 Subject: [PATCH] updating install directory to support two gopaths, one from drone and this one with gomobile --- Dockerfile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 283fc57..5daba1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,12 +78,9 @@ RUN set -eux; \ 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 +RUN mkdir /gomobile # Set up GOPATH in /workspace -ENV GOPATH /workspace/go +ENV GOPATH /gomobile:/go ENV PATH $GOPATH/bin:$PATH RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" "$GOPATH/pkg" && chmod -R 777 "$GOPATH" @@ -91,7 +88,5 @@ RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" "$GOPATH/pkg" && chmod -R 777 "$GOPATH" RUN go install golang.org/x/mobile/cmd/gomobile@latest RUN go install golang.org/x/mobile/cmd/gobind@latest -#RUN go get -u golang.org/x/mobile -#RUN go get -u golang.org/x/mobile/bind - # RUN gomobile init +