Spaces:
Paused
Paused
Download Dockerfile from playingapi/ondemand: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/playingapi/ondemand/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/playingapi/ondemand/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/playingapi/ondemand/resolve/main/Dockerfile
294 Bytes
| FROM python:3.10-slim | |
| # 安装pip依赖 | |
| WORKDIR /workspace | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 复制你的源码 | |
| COPY . . | |
| # Space 必须监听 0.0.0.0:7860 或 3000,建议 7860! | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["python", "openai_ondemand_adapter.py"] |