tokyo-flat-finder-api / Dockerfile
ArthurZ's picture
ArthurZ HF Staff
add public /p/<id> preview page
57a81bc verified
Raw
History Blame Contribute Delete
350 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN pip install --no-cache-dir fastapi==0.111.0 "uvicorn[standard]==0.30.1" huggingface_hub==0.24.6
COPY app.py public_listings.json /app/
# HF Spaces (docker) route to app_port (7860). Writable cache for the HF hub.
ENV HF_HOME=/tmp/hf
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]