Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +15 -8
Dockerfile
CHANGED
|
@@ -1,15 +1,22 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
|
| 6 |
-
RUN
|
| 7 |
-
RUN
|
| 8 |
|
| 9 |
-
|
| 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
|