vc / Dockerfile
midhyaraj's picture
Update Dockerfile
20dfbc0 verified
raw
history blame contribute delete
945 Bytes
# Use a base image with Python
FROM python:3.8-slim
# Set environment variables to avoid prompts during installation
ENV PYTHONUNBUFFERED 1
ENV PIP_NO_CACHE_DIR=off
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
# Set the working directory
WORKDIR /app
# Install system dependencies and Python packages
RUN apt-get update && \
apt-get install -y git && \
pip install --no-cache-dir -U scipy gradio
# Clone the Tortoise-TTS repository
RUN git clone https://github.com/neonbjb/tortoise-tts.git
# Set the working directory to the cloned repository
WORKDIR /app/tortoise-tts
# Install the required Python packages from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Install the package using setup.py
RUN python setup.py install
# Copy your application code (e.g., app.py) to the container
COPY app.py .
# Expose the port that Gradio will run on
EXPOSE 7860
# Command to run your application
CMD ["python", "app.py"]