# 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"] |