math-backend / Dockerfile
engineportf's picture
Upload Dockerfile with huggingface_hub
25e90db verified
Raw
History Blame Contribute Delete
328 Bytes
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements-hf.txt .
RUN pip install --no-cache-dir -r requirements-hf.txt
COPY . .
EXPOSE 7860
CMD ["uvicorn", "hf_app:app", "--host", "0.0.0.0", "--port", "7860"]