teamup-tech/bs-roformer
2
1FROM python:3.10-slim2 3WORKDIR /app4 5RUN apt-get update && \6 apt-get install -y --no-install-recommends git gcc libc6-dev ffmpeg && \7 rm -rf /var/lib/apt/lists/*8 9COPY requirements.txt /app/requirements.txt10RUN pip install --no-cache-dir -r /app/requirements.txt11 12# Pre-download model weights at build time so first inference is fast13RUN bs-roformer-download \14 --model roformer-model-bs-roformer-sw-by-jarredou \15 --output-dir /app/models16 17COPY . /app18 19ENV PORT=786020EXPOSE 786021ENV PYTHONUNBUFFERED=122ENV PYTHONIOENCODING=UTF-823 24CMD ["python", "-u", "app.py"]25 