# Use an official Python runtime as a parent image FROM python:3.10-slim # Set the working directory in the container WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ gcc \ libgl1-mesa-glx \ libglib2.0-0 # Copy only requirements to leverage Docker cache COPY requirements.txt . # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code COPY . /app # Make port 8000 available to the world outside this container EXPOSE 8000 # Run the entrypoint script CMD ["sh", "./entrypoint.sh"]