Spaces:
Sleeping
Sleeping
Download Dockerfile from XY26/Dual-Frame-Mistral-Bot: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/spaces/XY26/Dual-Frame-Mistral-Bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/XY26/Dual-Frame-Mistral-Bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/XY26/Dual-Frame-Mistral-Bot/resolve/main/Dockerfile
474 Bytes
| # Use the official image. The engine is already installed here. | |
| FROM ghcr.io/abetlen/llama-cpp-python:latest | |
| # Switch to root to install Gradio | |
| USER root | |
| RUN python3 -m pip install --upgrade pip | |
| RUN python3 -m pip install gradio huggingface_hub | |
| # Setup User (Required by Hugging Face Spaces security) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| CMD ["python3", "app.py"] |