Spaces:
Paused
Paused
Download Dockerfile from lhybosco/chat2api: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/lhybosco/chat2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lhybosco/chat2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lhybosco/chat2api/resolve/main/Dockerfile
329 Bytes
| FROM python:3.11 | |
| RUN apt update | |
| RUN apt install git | |
| RUN git clone https://github.com/lanqian528/chat2api.git /app | |
| WORKDIR "app" | |
| RUN mkdir -p /app/data | |
| RUN chmod -R 777 /app/data | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install python-multipart | |
| EXPOSE 5005 | |
| CMD ["python", "app.py", "--host", "0.0.0.0:5005"] |