av
Create Dockerfile
3fb154b verified
Raw
History Blame
287 Bytes
FROM python:3.11-slim
# HF Spaces runs as a non-root user; make sure /tmp is writable (it always is)
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .
# HF Spaces expects the app on port 7860
EXPOSE 7860
CMD ["python", "main.py"]