Spaces:
Runtime error
Runtime error
Download Dockerfile from Taxy01/taxy-ml-api: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/Taxy01/taxy-ml-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Taxy01/taxy-ml-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Taxy01/taxy-ml-api/resolve/main/Dockerfile
431 Bytes
| # Taxy ML API — Docker image untuk Hugging Face Spaces (CPU) | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Kode + model | |
| COPY . . | |
| # Cache ke /tmp (HF Spaces: home read-only) + port HF | |
| ENV PORT=7860 \ | |
| KERAS_HOME=/tmp/.keras \ | |
| HF_HOME=/tmp/.hf \ | |
| TF_CPP_MIN_LOG_LEVEL=3 \ | |
| PYTHONUNBUFFERED=1 | |
| EXPOSE 7860 | |
| CMD ["python", "serve.py"] | |