rsignell commited on
Commit
dc8b0df
1 Parent(s): bf86db2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -7
Dockerfile CHANGED
@@ -1,15 +1,28 @@
1
- FROM python:3.9
2
 
3
- WORKDIR /code
 
 
 
4
 
5
- COPY ./requirements.txt /code/requirements.txt
6
- RUN python3 -m pip install --no-cache-dir --upgrade pip
7
- RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
- COPY . .
 
 
10
 
11
- CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
12
 
 
 
 
 
 
 
 
 
 
13
  RUN mkdir /.cache
14
  RUN chmod 777 /.cache
15
  RUN mkdir .chroma
 
1
+ FROM condaforge/mambaforge
2
 
3
+ # install packages from conda-forge using mamba
4
+ COPY environment.yml .
5
+ RUN mamba env create -f environment.yml
6
+ SHELL ["conda", "run", "-n", "panel_app", "/bin/bash", "-c"]
7
 
8
+ RUN mamba env create -f environment.yml
9
+ SHELL ["conda", "run", "-n", "panel_app", "/bin/bash", "-c"]
 
10
 
11
+ # clone the notebooks from repo into examples folker
12
+ RUN git clone https://github.com/reproducible-notebooks/Holoviz-Demos.git /bokeh
13
+ RUN mkdir -p /examples && cp /bokeh/*.ipynb /examples/ && rm -rf /bokeh
14
 
15
+ #ADD https://raw.githubusercontent.com/bokeh/demo.bokeh.org/main/index.html /index.html
16
 
17
+ CMD panel serve \
18
+ --allow-websocket-origin="*" \
19
+ --port="7860" \
20
+ --address="0.0.0.0"
21
+ /examples/HRRR-Explorer.ipynb \
22
+ /examples/WaveWatch3-Explorer.ipynb \
23
+ /examples/COAWST-Explorer.ipynb \
24
+ /examples/CONUS404_Panel_App.ipynb
25
+
26
  RUN mkdir /.cache
27
  RUN chmod 777 /.cache
28
  RUN mkdir .chroma