# Use NVIDIA CUDA runtime as parent image (includes CUDA 12.1 + cuDNN 8) FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04 # Avoid interactive timezone prompt ENV DEBIAN_FRONTEND=noninteractive # Set the working directory in the container WORKDIR /MoneyPrinterTurbo RUN chmod 777 /MoneyPrinterTurbo ENV PYTHONPATH="/MoneyPrinterTurbo" # Install Python 3.11 and system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ software-properties-common \ git \ imagemagick \ ffmpeg \ curl \ && add-apt-repository ppa:deadsnakes/ppa \ && apt-get update && apt-get install -y --no-install-recommends \ python3.11 \ python3.11-venv \ python3.11-dev \ python3-pip \ && ln -sf /usr/bin/python3.11 /usr/bin/python3 \ && ln -sf /usr/bin/python3.11 /usr/bin/python \ && python3.11 -m pip install --upgrade pip \ && apt-get remove -y python3-blinker || true \ && rm -rf /var/lib/apt/lists/* # Fix security policy for ImageMagick RUN sed -i '/