Download Dockerfile from mikeee/c2a: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/mikeee/c2a/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mikeee/c2a/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mikeee/c2a/resolve/main/Dockerfile
375 Bytes
| FROM python:3.11 | |
| RUN apt update && \ | |
| apt install git && \ | |
| git clone https://github.com/lanqian528/chat2api.git /app | |
| ENV PIP_ROOT_USER_ACTION=ignore \ | |
| TZ=Asia/Shanghai \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN TZ=Asia/Shanghai > /etc/timezone && \ | |
| mkdir -p data && \ | |
| chmod 777 data && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 5005 | |
| CMD ["python", "app.py"] | |