Download Dockerfile from 8e/chat2api: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/8e/chat2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/8e/chat2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/8e/chat2api/resolve/main/Dockerfile
298 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt update && apt install -y git && \ | |
| git clone https://github.com/LanQian528/chat2api && \ | |
| cd chat2api && pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir /app/data | |
| RUN chmod -R 777 /app/data | |
| EXPOSE 5005 | |
| CMD ["python", "chat2api/app.py"] |