forked from rndsrc/interview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 764 Bytes
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
FROM continuumio/miniconda
ENV BK_VERSION=2.1.0
ENV PY_VERSION=3.7
ENV NUM_PROCS=4
ENV BOKEH_RESOURCES=cdn
RUN apt-get install git bash
RUN git clone --branch eq_editor_alpha https://github.com/phanicode/interview.git
COPY requirements.txt ./
RUN conda config --append channels bokeh
RUN conda install --yes python=${PY_VERSION} jinja2 bokeh=${BK_VERSION} numpy ephem seaborn matplotlib scipy sympy "nodejs>=8.8" pandas flask pyyaml=5.3.1
RUN conda clean -ay
RUN pip install --upgrade pip && \
pip install -r requirements.txt
EXPOSE 5006
EXPOSE 80
# Go to dockerhub cli or use docker exec (docker exec -t -i interview:bokehapp /bin/bash)
# cd interview
# cd apps
# bokeh serve --allow-websocket-origin="*" --num-procs=4 (max no of processes) new.py