File size: 936 Bytes
dc8b0df
dd21439
dc8b0df
 
 
 
dd21439
dc8b0df
 
dd21439
dc8b0df
 
 
dd21439
dc8b0df
dd21439
dc8b0df
 
 
 
 
 
 
 
 
dd21439
 
 
 
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
FROM condaforge/mambaforge

# install packages from conda-forge using mamba
COPY environment.yml .
RUN mamba env create -f environment.yml
SHELL ["conda", "run", "-n", "panel_app", "/bin/bash", "-c"]

RUN mamba env create -f environment.yml
SHELL ["conda", "run", "-n", "panel_app", "/bin/bash", "-c"]

# clone the notebooks from repo into examples folker
RUN git clone https://github.com/reproducible-notebooks/Holoviz-Demos.git /bokeh
RUN mkdir -p /examples && cp /bokeh/*.ipynb /examples/ && rm -rf /bokeh

#ADD https://raw.githubusercontent.com/bokeh/demo.bokeh.org/main/index.html /index.html

CMD panel serve \
    --allow-websocket-origin="*" \
    --port="7860" \
    --address="0.0.0.0"
    /examples/HRRR-Explorer.ipynb \
    /examples/WaveWatch3-Explorer.ipynb \
    /examples/COAWST-Explorer.ipynb \
    /examples/CONUS404_Panel_App.ipynb 
    
RUN mkdir /.cache
RUN chmod 777 /.cache
RUN mkdir .chroma
RUN chmod 777 .chroma