Spaces:
Runtime error
Runtime error
Download Dockerfile from mp0o1/hf-llm-api: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/mp0o1/hf-llm-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mp0o1/hf-llm-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mp0o1/hf-llm-api/resolve/main/Dockerfile
526 Bytes
| FROM python:3.11 | |
| # Update the package lists and install git | |
| RUN apt update && apt install -y git | |
| # Clone the hf-llm-api repository into the /app directory | |
| RUN git clone https://github.com/Hansimov/hf-llm-api.git /app | |
| # Set the working directory to /app | |
| WORKDIR "/app" | |
| # Install Python dependencies from requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port 23333 for the application | |
| EXPOSE 23333 | |
| # Command to run the application when the container starts | |
| CMD ["python", "-m", "apis.chat_api"] |