scholarbot / Dockerfile
Zan18A's picture
fix: change port to 7860 for huggingface spaces
a1a40d8
Raw
History Blame Contribute Delete
260 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV HF_HOME=/app/.cache/huggingface
ENV PYTHONUNBUFFERED=1
EXPOSE 8000
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"]