Testing / Dockerfile
Propvia's picture
fixing rq_hf.txt
77ae63d
raw
history blame contribute delete
322 Bytes
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
ENV HF_HOME=/tmp
WORKDIR /code
COPY requirements_hf.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements_hf.txt
COPY . .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "info"]