# Use Ubuntu 22.04 as the base image FROM ubuntu:22.04 # Set environment variables to prevent interactive prompts during install ENV DEBIAN_FRONTEND=noninteractive # Update and install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ espeak \ espeak-ng \ ffmpeg \ python3 \ python3-pip \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies COPY requirements.txt /tmp/ RUN pip3 install --no-cache-dir -r /tmp/requirements.txt # Set working directory WORKDIR /app # Copy application files COPY . /app # Define the command to run your application CMD ["python3", "app.py"]