content: FROM debian:trixie-slim
  
  ## Set deb to non-interactive mode and upgrade packages
  RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && export DEBIAN_FRONTEND=noninteractive
  RUN apt -y update && apt -y upgrade
  
  ## Install system dependencies
  RUN apt -y install binutils desktop-file-utils dpkg file imagemagick wget xz-utils pv curl jq zsync
  
  RUN curl -s https://api.github.com/repos/AppImage/appimagetool/releases/tags/1.9.0 \
      | jq -r '.assets[].browser_download_url' \
      | grep $(uname -m) \
      | xargs curl -Lo /usr/bin/appimagetool-$(uname -m).AppImage
  
  RUN cat <<EOF | (cd /usr/bin; sha256sum -c --strict --ignore-missing)
      46fdd785094c7f6e545b61afcfb0f3d98d8eab243f644b4b17698c01d06083d1  appimagetool-x86_64.AppImage
      04f45ea45b5aa07bb2b071aed9dbf7a5185d3953b11b47358c1311f11ea94a96  appimagetool-aarch64.AppImage
      2148af7e848c8f1f8b079045907828874fc14ec7f593426b6d0a95c759174de4  appimagetool-i686.AppImage
      848f3bcccc7e08da1414156e78a59da76fcb5a8c98d3d4e9ef8ab557e5892ad5  appimagetool-armhf.AppImage
  EOF
  
  RUN mv /usr/bin/appimagetool-$(uname -m).AppImage /usr/bin/appimagetool
  
  RUN chmod +x /usr/bin/appimagetool
  
  # create builder user
  RUN groupadd -g 1000 builder && useradd -d /home/builder -g 1000 -u 1000 -m builder
  
  USER builder
  
  ## Create and set WORKDIR to mount in docker build
  WORKDIR /repo
  