Skip to content

Commit 79a1aac

Browse files
committed
Make goimports accessible
GOPATH/bin should be in PATH, not GOROOT/bin
1 parent 118cd1b commit 79a1aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
99
RUN tar -C /usr/local -xzf go1.5.linux-amd64.tar.gz
1010
ENV PATH /usr/local/go/bin:$PATH
1111
ENV GOPATH /go
12-
ENV PATH $GOROOT/bin:$PATH
12+
ENV PATH $GOPATH/bin:$PATH
1313
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
1414

1515
# install gophernotes
@@ -19,4 +19,4 @@ RUN mkdir -p ~/.ipython/kernels/gophernotes
1919
RUN cp -r $GOPATH/src/github.com/gophergala2016/gophernotes/kernel/* ~/.ipython/kernels/gophernotes
2020

2121
EXPOSE 8888
22-
CMD ["jupyter", "notebook"]
22+
CMD ["jupyter", "notebook"]

0 commit comments

Comments
 (0)