Spaces:
Sleeping
Sleeping
Download Dockerfile from fast-stager/room_classifier: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/fast-stager/room_classifier/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/fast-stager/room_classifier/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fast-stager/room_classifier/resolve/main/Dockerfile
356 Bytes
| FROM python:3.9-slim | |
| ENV TRANSFORMERS_CACHE=/data/.cache/transformers | |
| ENV HF_HOME=/data/.cache/huggingface | |
| ENV MPLCONFIGDIR=/data/.cache/matplotlib | |
| WORKDIR /code | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p checkpoints | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |