From c3f849955067e017a326386309ac5f4c45e7d7ce Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Mon, 16 Jul 2018 17:49:41 -0500 Subject: [PATCH] fix permissions of GOPATH --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c153602..a1103f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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