Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +20 -7
Dockerfile
CHANGED
@@ -1,15 +1,28 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
|
|
|
|
|
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
-
|
|
|
|
|
10 |
|
11 |
-
|
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
|