2016-09-19 08:27:47 -04:00
|
|
|
FROM golang
|
2016-01-24 15:10:38 -06:00
|
|
|
|
|
|
|
# dependencies
|
|
|
|
RUN apt-get update
|
2016-09-19 08:27:47 -04:00
|
|
|
RUN apt-get install -y pkg-config libzmq3-dev build-essential python3-pip
|
2016-01-24 15:10:38 -06:00
|
|
|
|
|
|
|
# set up golang
|
|
|
|
ENV PATH /usr/local/go/bin:$PATH
|
|
|
|
ENV GOPATH /go
|
2016-02-18 10:59:23 -08:00
|
|
|
ENV PATH $GOPATH/bin:$PATH
|
2016-01-24 15:10:38 -06:00
|
|
|
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
|
|
|
|
|
|
|
|
# install gophernotes
|
|
|
|
RUN go get golang.org/x/tools/cmd/goimports
|
2016-09-19 08:27:47 -04:00
|
|
|
RUN go get -tags zmq_3_x github.com/gopherds/gophernotes
|
2016-01-24 15:10:38 -06:00
|
|
|
RUN mkdir -p ~/.ipython/kernels/gophernotes
|
2016-09-08 07:07:00 -05:00
|
|
|
RUN cp -r $GOPATH/src/github.com/gopherds/gophernotes/kernel/* ~/.ipython/kernels/gophernotes
|
2016-01-24 15:10:38 -06:00
|
|
|
|
2016-09-19 08:27:47 -04:00
|
|
|
# install jupyter
|
|
|
|
RUN pip3 install jupyter
|
|
|
|
|
2016-01-24 15:10:38 -06:00
|
|
|
EXPOSE 8888
|
2016-02-18 10:59:23 -08:00
|
|
|
CMD ["jupyter", "notebook"]
|