Spaces:
Sleeping
Sleeping
Download Dockerfile from emanalytics/dashboard: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/spaces/emanalytics/dashboard/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/emanalytics/dashboard/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/emanalytics/dashboard/resolve/main/Dockerfile
712 Bytes
| # Use the official Python image as a parent image | |
| # Use the official Python image as a parent image | |
| FROM python:3.11 | |
| # Set the working directory in the container | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN python3 -m pip install --no-cache-dir --upgrade pip | |
| RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| # Run app.py when the container launches | |
| # CMD ["bokeh", "serve", "--show", "dashboard/app.py", "address", ] | |
| CMD ["panel", "serve", "/code/dashboard/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "emanalytics-dashboard.hf.space"] | |
| RUN mkdir /.cache | |
| RUN chmod 777 /.cache | |
| RUN mkdir .chroma | |
| RUN chmod 777 .chroma |