| FROM python:3.9-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r /app/requirements.txt | |
| COPY . /app | |
| RUN chmod +x /app/start_hf_space.sh | |
| ENV API_HOST=0.0.0.0 \ | |
| API_PORT=8000 | |
| CMD ["/app/start_hf_space.sh"] | |