public

squashthumbnail (2025.0922.110330-aarch64)

Published 2025-09-22 11:03:33 +00:00 by j

Installation

docker pull gitea.jde.nz/public/squashthumbnail:2025.0922.110330-aarch64
sha256:e075e2e38768097d99b5615dc78afeccc5c7b391b01b83cf104f5cf4d639f380

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:5f2c65daac761cc691b34ee3e3e2ba42ec520d71fc59aef131d38058a7891ab8 in /
CMD ["/bin/bash"]
LABEL maintainer=j
LABEL description=Base image with Intel QuickSync, NVIDIA CUDA support, FFmpeg, and Python 3.11
ENV DEBIAN_FRONTEND=noninteractive
RUN /bin/sh -c apt-get update && apt-get install -y curl wget git build-essential pkg-config software-properties-common python3.11 python3.11-dev python3-pip python3.11-venv ffmpeg vainfo libva-drm2 libva-dev libva2 libgl1 libglib2.0-0 libsm6 libxext6 libxrender-dev libgomp1 libglu1-mesa libglu1-mesa-dev libgl1-mesa-dev libgl1-mesa-glx libopencv-dev libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-bad1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools libx264-dev libx265-dev libvpx-dev libfdk-aac-dev libmp3lame-dev libopus-dev libjpeg-dev libpng-dev libtiff-dev libwebp-dev libhdf5-dev libatlas-base-dev gfortran && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c if [ "$(dpkg --print-architecture)" = "amd64" ]; then apt-get update && apt-get install -y intel-media-va-driver-non-free i965-va-driver && rm -rf /var/lib/apt/lists/*; fi # buildkit
RUN /bin/sh -c update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 && update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 # buildkit
RUN /bin/sh -c python -m pip install --upgrade pip setuptools wheel # buildkit
RUN /bin/sh -c pip install --no-cache-dir numpy scipy pandas matplotlib pillow opencv-python-headless scikit-learn tqdm pyyaml requests # buildkit
RUN /bin/sh -c pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu # buildkit
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV OPENCV_VIDEOIO_PRIORITY_GSTREAMER=1
ENV FFMPEG_HWACCEL_PRIORITY=vaapi,cuda,auto
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
RUN /bin/sh -c useradd -m -s /bin/bash -u 1000 appuser && usermod -a -G video appuser # buildkit
RUN /bin/sh -c mkdir -p /app /data /models && chown -R appuser:appuser /app /data /models # buildkit
RUN /bin/sh -c echo '#!/bin/bash\nexport LIBVA_DRIVERS_PATH=/usr/lib/$(uname -m)-linux-gnu/dri\nif [ "$(uname -m)" = "x86_64" ]; then\n export LIBVA_DRIVER_NAME=iHD\nfi\nexec "$@"' > /entrypoint.sh && chmod +x /entrypoint.sh # buildkit
WORKDIR /app
HEALTHCHECK &{["CMD-SHELL" "python -c \"import torch, cv2, numpy; print('OK')\" && ffmpeg -version > /dev/null 2>&1"] "30s" "3s" "5s" "0s" '\x03'}
USER appuser
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/bash"]
USER root
RUN /bin/sh -c pip install --no-cache-dir ultralytics opencv-python # buildkit
COPY --chown=appuser:appuser generate_thumbnail.py /app/ # buildkit
COPY --chown=appuser:appuser generate_thumbnail_improved.py /app/ # buildkit
COPY --chown=appuser:appuser generate_thumbnail_fast.py /app/ # buildkit
COPY --chown=appuser:appuser generate_thumbnail_radical.py /app/ # buildkit
COPY --chown=appuser:appuser generate_thumbnail_noses.py /app/ # buildkit
COPY --chown=appuser:appuser generate_thumbnail_wrapper.py /app/ # buildkit
RUN /bin/sh -c chmod +x /app/generate_thumbnail.py /app/generate_thumbnail_improved.py /app/generate_thumbnail_fast.py /app/generate_thumbnail_radical.py /app/generate_thumbnail_noses.py /app/generate_thumbnail_wrapper.py # buildkit
USER appuser
WORKDIR /data
ENV YOLO_CONFIG_DIR=/home/appuser/.cache/Ultralytics
ENTRYPOINT ["python" "/app/generate_thumbnail_wrapper.py"]

Labels

Key Value
description Base image with Intel QuickSync, NVIDIA CUDA support, FFmpeg, and Python 3.11
maintainer j
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 22.04
Details
Container
2025-09-22 11:03:33 +00:00
0
OCI / Docker
linux/arm64
973 MiB
Versions (55) View all
latest 2025-09-26
latest-x86_64 2025-09-26
latest-aarch64 2025-09-26