# Use an official Python runtime as the parent image FROM python:3.11-bullseye RUN apt-get update && apt-get install -y \ ffmpeg \ imagemagick \ ghostscript \ fonts-roboto \ cron \ && apt-get clean && rm -rf /var/lib/apt/lists/* # Update font cache RUN fc-cache -f -v RUN sed -i '/ /etc/cron.d/automate RUN chmod 0644 /etc/cron.d/automate RUN crontab /etc/cron.d/automate RUN touch /var/log/cron.log # Run Python script when the container launches CMD cron && tail -f /var/log/cron.log