# Use an official Python runtime as a parent image FROM python:3.10-slim # Set the working directory in the container WORKDIR /usr/src/app # Install system dependencies RUN apt-get update && apt-get install -y \ git \ imagemagick \ && rm -rf /var/lib/apt/lists/* # Fix security policy for ImageMagick RUN sed -i '/