Mustalhim_AI / Dockerfile
MoJaff's picture
Update Dockerfile
4454fff verified
raw
history blame contribute delete
633 Bytes
# 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"]