rsignell commited on
Commit
b040eb9
·
1 Parent(s): f29a0f4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -8
Dockerfile CHANGED
@@ -1,15 +1,22 @@
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
+ # clone the notebooks from repo into examples folker
9
+ RUN git clone https://github.com/reproducible-notebooks/Holoviz-Demos.git /bokeh
10
+ RUN mkdir -p /examples && cp /bokeh/*.ipynb /examples/ && rm -rf /bokeh
11
 
12
+ #ADD https://raw.githubusercontent.com/bokeh/demo.bokeh.org/main/index.html /index.html
 
 
13
 
14
+ CMD panel serve \
15
+ --allow-websocket-origin="*" \
16
+ --port="7860" \
17
+ --address="0.0.0.0" \
18
+ /examples/CONUS404_Panel_App.ipynb
19
+
20
  RUN mkdir /.cache
21
  RUN chmod 777 /.cache
22
  RUN mkdir .chroma