forked from FUSED-Wind/fusedwind-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 816 Bytes
/
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
## 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
# Install the webapp
RUN bash -c ". /install/openmdao-0.10.3.2/bin/activate; cd /opt/webapp; python setup.py develop"
# That should not be necessary. Those are unnecessary dependencies in fusedwind
RUN bash -c ". /install/openmdao-0.10.3.2/bin/activate; pip install ipython algopy"
RUN apt-get -y install python-matplotlib
WORKDIR /opt/webapp/src/wisdem
RUN git checkout develop \
&& git pull
# Done last in order not to have to rebuild all the lib every single time
EXPOSE 5000
CMD o10.3 /opt/webapp/fusedwindGUI/scripts/run.py