-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
40 lines (28 loc) · 1.02 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
## building
# docker build -t fwgui .
#
## running
# docker run -p 80:5000 fwgui
#
#
FROM piredtu/openmdao
MAINTAINER Pierre-Elouan Rethore <[email protected]>
RUN apt-get -y update \
&& apt-get -y install liblapack-dev
RUN mkdir /opt/webapp
WORKDIR /opt/webapp
ADD . /opt/webapp
# That should not be necessary. Those are unnecessary dependencies in fusedwind
RUN bash -c ". /install/openmdao-0.10.3.2/bin/activate; pip install --upgrade setuptools &>null"; exit 0
RUN bash -c ". /install/openmdao-0.10.3.2/bin/activate; pip install ipython algopy"
RUN apt-get -y install python-matplotlib
# Install the webapp
RUN bash -c ". /install/openmdao-0.10.3.2/bin/activate; cd /opt/webapp; python setup.py develop"
WORKDIR /opt/webapp/src/wisdem
RUN git checkout develop \
&& git pull
RUN bash -c ". /install/openmdao-0.10.3.2/bin/activate; pip install --upgrade bokeh==0.12.0 pandas"
# Done last in order not to have to rebuild all the lib every single time
EXPOSE 5000
WORKDIR /opt/webapp
CMD o10.3 /opt/webapp/fusedwindGUI/scripts/run.py