-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67b4d36
commit 9bcbaf0
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM wolframresearch/wolframengine | ||
|
||
ARG APT_PROXY | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
USER root | ||
|
||
RUN apt-get update \ | ||
&& if [ ! -z "$APT_PROXY" ]; then echo "Acquire::http::Proxy \"${APT_PROXY}\";" > /etc/apt/apt.conf.d/02proxy; fi \ | ||
&& apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
gfortran \ | ||
git \ | ||
libcurl4-openssl-dev \ | ||
libmagick++-dev \ | ||
python-is-python3 \ | ||
python3-pip \ | ||
r-base \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& python3 -m pip install jupyterlab matplotlib numpy pandas scikit-image scikit-learn seaborn see statsmodels sympy \ | ||
&& Rscript -e 'options(Ncpus = 8); install.packages(c("ellipse", "exactci", "ggplot2", "IRkernel", "magick", "matrixcalc", "mnormt", "pracma")); IRkernel::installspec(user = FALSE)' | ||
|
||
WORKDIR /home/wolframengine | ||
|
||
COPY Licensing/mathpass /usr/share/WolframEngine/Licensing/ | ||
|
||
RUN chmod 644 /usr/share/WolframEngine/Licensing/mathpass | ||
|
||
USER wolframengine | ||
|
||
RUN git clone https://github.com/WolframResearch/WolframLanguageForJupyter.git \ | ||
&& WolframLanguageForJupyter/configure-jupyter.wls add | ||
|
||
ENV PASS='password' | ||
CMD ["sh", "-c", "jupyter lab --ip=0.0.0.0 --no-browser --NotebookApp.token=\"${PASS}\""] |