-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
52 lines (43 loc) · 1.48 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM jupyter/scipy-notebook:latest
MAINTAINER Thomas Paviot <tpaviot@gmail.com>
USER root
ENV DEBIAN_FRONTEND=noninteractive
##############
# apt update #
##############
RUN apt-get update
RUN apt-get install -y wget libglu1-mesa-dev libgl1-mesa-dev libxmu-dev libxi-dev
RUN dpkg-reconfigure --frontend noninteractive tzdata
#########################################################
# Install pythonocc-core 7.8.1 from conda-forge channel #
#########################################################
RUN ls /opt
RUN /opt/conda/bin/conda config --set always_yes yes --set changeps1 no
RUN /opt/conda/bin/conda info -a
RUN /opt/conda/bin/conda config --add channels https://conda.anaconda.org/conda-forge
RUN /opt/conda/bin/conda install -c conda-forge pythonocc-core=7.8.1
##############################
# Install pythonocc examples #
##############################
WORKDIR /opt/build/
RUN git clone https://github.com/tpaviot/pythonocc-demos
WORKDIR /opt/build/pythonocc-demos
RUN cp -r /opt/build/pythonocc-demos/assets /home/jovyan/work
RUN cp -r /opt/build/pythonocc-demos/jupyter_notebooks /home/jovyan/work
#############
# pythreejs #
#############
RUN /opt/conda/bin/conda install -c conda-forge pythreejs
########
# gmsh #
########
#RUN /opt/conda/bin/conda install -c conda-forge gmsh
################
# IfcOpenShell #
################
#RUN /opt/conda/bin/conda install -c conda-forge ifcopenshell
#####################
# back to user mode #
#####################
USER jovyan
WORKDIR /home/jovyan/work