2016-01-24 15:10:38 -06:00
|
|
|
FROM continuumio/anaconda
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y pkg-config libzmq-dev build-essential
|
|
|
|
|
|
|
|
# set up golang
|
|
|
|
RUN wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
|
|
|
|
RUN tar -C /usr/local -xzf go1.5.linux-amd64.tar.gz
|
|
|
|
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-08 07:07:00 -05:00
|
|
|
RUN go get 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
|
|
|
|
|
|
|
EXPOSE 8888
|
2016-02-18 10:59:23 -08:00
|
|
|
CMD ["jupyter", "notebook"]
|