2024-06-28 15:32:11 +08:00
|
|
|
FROM docker.io/ben0i0d/jupyter:py-c AS builder
|
2024-04-15 19:57:23 +08:00
|
|
|
|
|
|
|
COPY Mathematica_14.0.0_LINUX.sh .
|
2024-03-17 15:40:43 +08:00
|
|
|
|
|
|
|
USER root
|
2024-04-16 11:50:45 +08:00
|
|
|
# Two RUN layer to use cache
|
2024-04-15 19:57:23 +08:00
|
|
|
RUN apt-get update --yes && apt-get install --yes --no-install-recommends xz-utils && apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
2024-04-16 11:50:45 +08:00
|
|
|
bash Mathematica_14.0.0_LINUX.sh -- -auto -targetdir=/opt/Wolfram/Mathematica/14.0 && rm Mathematica_14.0.0_LINUX.sh
|
|
|
|
|
|
|
|
RUN git clone --depth 1 https://github.com/WolframResearch/WolframLanguageForJupyter.git && mv WolframLanguageForJupyter /opt
|
2024-04-15 19:57:23 +08:00
|
|
|
|
2024-06-28 15:32:11 +08:00
|
|
|
FROM docker.io/ben0i0d/jupyter:py-c
|
2024-04-15 19:57:23 +08:00
|
|
|
|
2024-04-15 14:40:56 +08:00
|
|
|
ENV PATH="${PATH}:/opt/Wolfram/Mathematica/14.0/Executables/"
|
2024-03-17 15:40:43 +08:00
|
|
|
|
2024-04-16 11:50:45 +08:00
|
|
|
COPY --from=builder /opt/Wolfram/ /opt/Wolfram/
|
|
|
|
COPY --from=builder --chown="${NB_UID}:${NB_GID}" /opt/WolframLanguageForJupyter/ /opt/WolframLanguageForJupyter/
|
|
|
|
COPY --chown="${NB_UID}:${NB_GID}" kernel /opt/base/share/jupyter/kernels/wolframlanguage14/
|