# Use an official Python runtime as a parent image FROM python:3.10-slim-bullseye # Set the working directory in the container WORKDIR /NarratoAI # 设置/NarratoAI目录权限为777 RUN chmod 777 /NarratoAI ENV PYTHONPATH="/NarratoAI" # Install system dependencies RUN apt-get update && apt-get install -y \ git \ imagemagick \ ffmpeg \ wget \ && rm -rf /var/lib/apt/lists/* # Fix security policy for ImageMagick RUN sed -i '/