-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (32 loc) · 1.14 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
FROM python:3.7
# Install recent nodejs for bokeh & jsmol-bokeh-extension
# See https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get update && apt-get install -y --no-install-recommends \
nodejs \
graphviz \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean all
# Install jsmol
WORKDIR /app
RUN wget https://sourceforge.net/projects/jmol/files/Jmol/Version%2014.29/Jmol%2014.29.22/Jmol-14.29.22-binary.zip/download --output-document jmol.zip
RUN unzip jmol.zip && cd jmol-14.29.22 && unzip jsmol.zip
# Copy bokeh app
WORKDIR /project/discover-cofs
COPY figure ./figure
COPY detail ./detail
COPY select-figure ./select-figure
RUN ln -s /app/jmol-14.29.22/jsmol ./detail/static/jsmol
COPY setup.py import_db.py ./
RUN pip install -e .
COPY serve-app.sh /opt/
#RUN chown -R scientist:scientist /project
#USER scientist
# This environment variable can be changed at build time:
# docker build --build-arg BOKEH_PREFIX=/abc
ARG BOKEH_PREFIX="abc"
ENV BOKEH_PREFIX $BOKEH_PREFIX
# start bokeh server
EXPOSE 5006
CMD ["/opt/serve-app.sh"]
#EOF