Ovi / Dockerfile
don0726's picture
Create Dockerfile
e1f4ee9 verified
raw
history blame contribute delete
421 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system deps
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV HF_HOME=/app/hf_cache
ENV TRANSFORMERS_CACHE=/app/hf_cache
ENV HF_HUB_CACHE=/app/hf_cache
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]