FROM python:3.10-slim RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg \ libsndfile1 \ build-essential \ swig \ cmake \ pkg-config \ git \ curl \ && rm -rf /var/lib/apt/lists/* RUN useradd -m -u 1000 user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ PYTHONUNBUFFERED=1 \ VEDICTHG_DIR=/home/user/app/VedicTHG/VedicTHG WORKDIR /home/user/app COPY --chown=user requirements.txt . USER user RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \ pip install --no-cache-dir -r requirements.txt COPY --chown=user . . EXPOSE 7860 CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]