-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
29 lines (23 loc) · 921 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM gapsystem/gap-docker-base
MAINTAINER The GAP Group <support@gap-system.org>
ENV GAP_VERSION 4.11.1
RUN mkdir /home/gap/inst/ \
&& cd /home/gap/inst/ \
&& wget -q https://github.com/gap-system/gap/releases/download/v${GAP_VERSION}/gap-${GAP_VERSION}.tar.gz \
&& tar xzf gap-${GAP_VERSION}.tar.gz \
&& rm gap-${GAP_VERSION}.tar.gz \
&& cd gap-${GAP_VERSION} \
&& ./configure \
&& make \
&& cp bin/gap.sh bin/gap \
&& cd pkg \
&& ../bin/BuildPackages.sh \
&& test='JupyterKernel-*' \
&& mv ${test} JupyterKernel \
&& cd JupyterKernel \
&& python3 setup.py install --user
RUN jupyter serverextension enable --py jupyterlab --user
ENV PATH /home/gap/inst/gap-${GAP_VERSION}/pkg/JupyterKernel/bin:${PATH}
ENV JUPYTER_GAP_EXECUTABLE /home/gap/inst/gap-${GAP_VERSION}/bin/gap.sh
ENV GAP_HOME /home/gap/inst/gap-${GAP_VERSION}
ENV PATH ${GAP_HOME}/bin:${PATH}