Download Dockerfile from Apex123/Chat: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/spaces/Apex123/Chat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Apex123/Chat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Apex123/Chat/resolve/main/Dockerfile
312 Bytes
| FROM python:3.10-slim | |
| # 安裝必要套件 | |
| RUN apt update && apt install -y curl | |
| # 設定工作目錄 | |
| WORKDIR /app | |
| # 複製程式碼 | |
| COPY requirements.txt . | |
| COPY server.py . | |
| # 安裝 Python 套件 | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 啟動 Flask API | |
| EXPOSE 7860 | |
| CMD ["python", "server.py"] | |