FROM python:3.10-slim ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 ENV HF_HOME=/tmp/huggingface ENV TRANSFORMERS_CACHE=/tmp/huggingface ENV SEMA_TMP_DIR=/tmp WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt /app/requirements.txt COPY webapp/requirements.txt /app/webapp-requirements.txt RUN pip install --no-cache-dir -r /app/requirements.txt -r /app/webapp-requirements.txt COPY . /app EXPOSE 7860 CMD ["uvicorn", "webapp.backend.app:app", "--host", "0.0.0.0", "--port", "7860"]