Skip to content

Commit 70f0581

Browse files
authored
Merge pull request #88 from gopherdata/update-docker
Update Dockerfiles to allow go get
2 parents 517aa1f + 15ab140 commit 70f0581

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ RUN set -x \
4040
ipaexg00301* \
4141
&& rm -rf /var/cache/apk/*
4242

43+
# Set GOPATH.
44+
ENV GOPATH /go
45+
4346
EXPOSE 8888
4447
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]

Dockerfile.DS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ RUN set -x \
3131
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
3232
&& pip3 install jupyter notebook \
3333
## install gophernotes
34-
&& GOPATH=/go go install github.com/gopherdata/gophernotes \
34+
&& export GOPATH=/go \
35+
&& go install github.com/gopherdata/gophernotes \
3536
&& cp /go/bin/gophernotes /usr/local/bin/ \
3637
&& mkdir -p ~/.local/share/jupyter/kernels/gophernotes \
3738
&& cp -r /go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes \
@@ -62,5 +63,8 @@ RUN set -x \
6263
ipaexg00301* \
6364
&& rm -rf /var/cache/apk/*
6465

66+
# Set GOPATH.
67+
ENV GOPATH /go
68+
6569
EXPOSE 8888
6670
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]

0 commit comments

Comments
 (0)