# Use a Python base image FROM python:3.10-slim # Install dependencies RUN apt-get update && apt-get install -y \ build-essential \ software-properties-common \ wget \ libssl-dev \ libffi-dev \ ffmpeg \ libsndfile1 \ && rm -rf /var/lib/apt/lists/* # Install the latest CMake manually RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.6/cmake-3.27.6-linux-x86_64.tar.gz \ && tar -xzf cmake-3.27.6-linux-x86_64.tar.gz \ && mv cmake-3.27.6-linux-x86_64 /opt/cmake \ && ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake # Verify CMake version RUN cmake --version # Set the working directory WORKDIR /app # Copy the requirements file COPY requirements.txt /app/ # Upgrade pip and install dependencies RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r requirements.txt # Copy all source files COPY . /app # Run your application (Replace `app.py` with your actual script) CMD ["python", "app.py"]