|
|
|
FROM python:3.11-slim
|
|
|
|
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y ffmpeg
|
|
RUN apt-get update -y && apt-get upgrade -y && apt-get install --reinstall -y wget
|
|
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb && dpkg -i cuda-keyring_1.0-1_all.deb && apt-get update -y && apt-get upgrade -y && apt-get install -y libcudnn8 libcudnn8-dev
|
|
|
|
|
|
RUN useradd -m -u 1000 user
|
|
|
|
|
|
USER user
|
|
|
|
|
|
ENV HOME=/home/user \
|
|
PATH=/home/user/.local/bin:$PATH
|
|
|
|
|
|
WORKDIR $HOME/app
|
|
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
COPY --chown=user . $HOME/app
|
|
|
|
|
|
RUN mkdir -p .cache
|
|
|
|
|
|
CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "7860", "--lan", "en", "--model", "tiny", "--min-chunk-size", "1.5", "--generate-audio", "True"]
|
|
|
|
|