Spaces:
Running
Running
File size: 633 Bytes
22d2222 4454fff 22d2222 4454fff 22d2222 |
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 |
# Use the official Python image as the base image
FROM python:3.9-slim
# Install system dependencies (espeak-ng for text-to-speech and build tools for SentencePiece)
RUN apt-get update && apt-get install -y \
espeak-ng \
build-essential \
cmake \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements file into the container
COPY requirements.txt /tmp/requirements.txt
# Install Python dependencies
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Copy the rest of the application code
COPY . /app
WORKDIR /app
# Expose the port Gradio runs on
EXPOSE 7860
# Run the Gradio app
CMD ["python", "app.py"] |