-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·48 lines (36 loc) · 1.57 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
############################################################
# Dockerfile to build STREAM webapp
############################################################
# Set the base image to stream
FROM pinellolab/stream:0.3.8
# File Author / Maintainer
MAINTAINER Huidong Chen
#website dependencies
RUN pip install dash==0.21.0 # The core dash backend
RUN pip install dash-renderer==0.11.3 # The dash front-end
RUN pip install dash-html-components==0.9.0 # HTML components
RUN pip install dash-core-components==0.21.1 # Supercharged components
RUN pip install plotly --upgrade # Plotly graphing library used in examples
RUN pip install gunicorn
RUN pip install Werkzeug==0.16.1
#RUN apt-get install unzip
#libxml2 libxml2-dev -y
# install zips
#RUN apt-get update && apt-get install zip -y
# create environment
COPY stream_web /stream_web
WORKDIR /stream_web/
RUN mkdir /stream_web/precomputed
# upload button
RUN unzip upload-button.zip && cd upload-button && python setup.py install
RUN rm upload-button.zip
RUN rm -Rf upload-button
COPY /stream_web/static/STREAM.css /opt/conda/lib/python3.6/site-packages/dash_core_components/
COPY /stream_web/static/Loading-State.css /opt/conda/lib/python3.6/site-packages/dash_core_components/
COPY /stream_web/static/jquery-3.3.1.min.js /opt/conda/lib/python3.6/site-packages/dash_core_components/
RUN mkdir /tmp/UPLOADS_FOLDER
RUN mkdir /tmp/RESULTS_FOLDER
EXPOSE 10001
#CMD ["bash", "/stream_web/start_server_docker.sh"]
# Enable the STREAM webapp
ENTRYPOINT ["bash", "/stream_web/start_server_docker.sh"]