File size: 1,118 Bytes
33acd27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Use an official Ubuntu base image
FROM python:3.10
# Set environment variables to avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Update package list and install necessary packages including Python 3.10


# Create a working directory
WORKDIR /app

EXPOSE 5050
# Copy all files from the current directory to the /app directory in the container
COPY . .


# docker run -it -p 5052:5052 akthangdz/tts1:latest /bin/bash -c "source .env/bin/activate && pip install --upgrade gradio && python vixtts_demo.py" --gpus all -t nvidia/cuda

RUN apt-get update

RUN apt-get -y install git \
    curl \
    autoconf \
    bison \
    build-essential \
    libssl-dev \
    libyaml-dev \
    libreadline6-dev \
    zlib1g-dev \
    libncurses5-dev \
    libffi-dev \
    libgdbm6 \
    libgdbm-dev \
    libdb-dev \
    apt-utils

RUN python -m venv .env && \
    . .env/bin/activate && \
    pip install -r requirements.txt -q && \ 
    pip install --upgrade gradio && \
    touch .env/ok
    
# Set the default command to run when starting the container
CMD ["/bin/bash"]