1- FROM alpine:3.5
1+ FROM alpine:3.15
22MAINTAINER dwhitena
33
44# Add gophernotes
@@ -9,31 +9,32 @@ RUN set -x \
99 # install python and dependencies
1010 && apk update \
1111 && apk --no-cache \
12- --repository http://dl-4.alpinelinux.org/alpine/v3.7 /community \
13- --repository http://dl-4.alpinelinux.org/alpine/v3.7 /main \
12+ --repository http://dl-4.alpinelinux.org/alpine/v3.15 /community \
13+ --repository http://dl-4.alpinelinux.org/alpine/v3.15 /main \
1414 --arch=x86_64 add \
15- python3 \
16- su-exec \
17- gcc \
15+ ca-certificates \
1816 g++ \
17+ gcc \
1918 git \
20- py3-zmq \
19+ libffi-dev \
2120 pkgconfig \
22- zeromq-dev \
23- musl-dev \
21+ python3 python3-dev \
22+ py3-pip \
23+ py3-pyzmq \
2424 mercurial \
25- && pip3 install --upgrade pip==9.0.3 \
26- && cp /usr/bin/python3.6 /usr/bin/python \
25+ mesa-dev \
26+ musl-dev \
27+ su-exec \
28+ zeromq-dev \
29+ && pip3 install --upgrade pip==21.3.1 \
30+ && cp /usr/bin/python3.9 /usr/bin/python \
2731 ## install Go
28- && apk --update-cache --allow-untrusted \
29- --repository http://dl-4.alpinelinux.org/alpine/edge/community \
32+ && apk --update-cache \
3033 --arch=x86_64 add \
3134 go \
3235 ## jupyter notebook
3336 && ln -s /usr/include/locale.h /usr/include/xlocale.h \
34- ### fix pyzmq to v16.0.2 as that is what is distributed with py3-zmq
35- ### pin down the tornado and ipykernel to compatible versions
36- && pip3 install jupyter notebook pyzmq==16.0.2 tornado==4.5.3 ipykernel==4.8.1 \
37+ && pip3 install jupyter notebook pyzmq tornado ipykernel \
3738 ## install gophernotes
3839 && cd /go/src/github.com/gopherdata/gophernotes \
3940 && export GOPATH=/go \
@@ -44,14 +45,14 @@ RUN set -x \
4445 && cp -r ./kernel/* ~/.local/share/jupyter/kernels/gophernotes \
4546 && cd - \
4647 ## get the relevant Go packages
47- && go get -insecure gonum.org/v1/plot/... \
48- && go get -insecure gonum.org/v1/gonum/... \
49- && go get github.com/kniren /gota/... \
48+ && go get gonum.org/v1/plot/... \
49+ && go get gonum.org/v1/gonum/... \
50+ && go get github.com/go-gota /gota/... \
5051 && go get github.com/sajari/regression \
5152 && go get github.com/sjwhitworth/golearn/... \
52- && go get -insecure go-hep.org/x/hep/csvutil/... \
53- && go get -insecure go-hep.org/x/hep/fit \
54- && go get -insecure go-hep.org/x/hep/hbook \
53+ && go get go-hep.org/x/hep/csvutil/... \
54+ && go get go-hep.org/x/hep/fit \
55+ && go get go-hep.org/x/hep/hbook \
5556 && go get github.com/montanaflynn/stats \
5657 && go get github.com/boltdb/bolt \
5758 && go get github.com/patrickmn/go-cache \
@@ -64,7 +65,7 @@ RUN set -x \
6465 && go get github.com/pkg/errors \
6566 && go get github.com/stretchr/testify/assert \
6667 ## clean
67- && find /usr/lib/python3.6 -name __pycache__ | xargs rm -r \
68+ && find /usr/lib/python3.9 -name __pycache__ | xargs rm -r \
6869 && rm -rf \
6970 /root/.[acpw]* \
7071 ipaexg00301* \
0 commit comments