-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (32 loc) · 1.24 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 ubuntu:xenial
RUN mkdir -p /usr/src/app && mkdir -p /usr/src/install
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get install clang-3.8 -y
RUN apt-get install build-essential -y
RUN apt-get install cmake -y
#RUN apt-get install libc++-dev -y
RUN apt-get install wget -y
RUN mkdir -p /usr/include/boost
WORKDIR /usr/include/boost
RUN wget -q -S -O - 'http://downloads.sourceforge.net/project/boost/boost/1.61.0/boost_1_61_0.tar.gz' | tar xz
RUN apt-get install python3 -y
RUN apt-get -y install python3-pip
RUN pip3 install --upgrade pip
ADD ./requirements.txt /usr/src/install/
RUN pip3 install -r /usr/src/install/requirements.txt
RUN apt-get install python3-mysql.connector
RUN pip3 install --upgrade setuptools
WORKDIR /usr/include/
RUN apt-get install mercurial -y
RUN hg clone https://bitbucket.org/eigen/eigen
RUN apt-get install git -y
RUN git clone https://github.com/pybind/pybind11.git
#WORKDIR /usr/src/install
#RUN git clone git@github.com:sohale/implisolid.git
ADD ./implisolid /usr/src/install/implisolid/
WORKDIR /usr/src/install/implisolid/pyInterface/
RUN python3 /usr/src/install/implisolid/pyInterface/setupPyInterface.py install
ADD . /usr/src/app/mp5slicer/
WORKDIR /usr/src/app
CMD ["python3", "./mp5slicer/wrapper.py"]