docs: Add 24 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 48s

This commit is contained in:
Your Name
2025-09-22 23:57:38 +12:00
parent e27df71cd2
commit 2222a77070
12 changed files with 826 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
FROM python:3.11-slim
# Install ffmpeg and other dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
wget \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /app
# Install Python dependencies
RUN pip install --no-cache-dir \
ultralytics \
opencv-python-headless \
numpy
# Copy the thumbnail generation script
COPY generate_thumbnail.py /app/
# Make script executable
RUN chmod +x /app/generate_thumbnail.py
# Set the entrypoint
ENTRYPOINT ["python", "/app/generate_thumbnail.py"]