Download Dockerfile from xianhui86/warp2api: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/spaces/xianhui86/warp2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xianhui86/warp2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xianhui86/warp2api/resolve/main/Dockerfile
334 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p /app/logs /data/logs \ | |
| && chmod -R 777 /app/logs /data | |
| ENV OPENAI_COMPAT_PORT=7860 \ | |
| PORT=7860 \ | |
| DATA_DIR=/data \ | |
| LOG_DIR=/data/logs | |
| EXPOSE 7860 | |
| CMD ["python", "main.py", "all"] | |