Skip to content

Instantly share code, notes, and snippets.

@kawalain
Last active August 19, 2026 08:08
Show Gist options
  • Select an option

  • Save kawalain/bf68b3bf612f1a008fc210758137901d to your computer and use it in GitHub Desktop.

Select an option

Save kawalain/bf68b3bf612f1a008fc210758137901d to your computer and use it in GitHub Desktop.
copyparty beta with HEIC/HEVC thumbnail support
# Building it yourself is possible, but honestly it takes too long and is a hassle.
# If you just grab the necessary packages, it should work.
# If HEIC images taken with a device like Samsung appear abnormal, please refer to the link below:
# - https://trac.ffmpeg.org/ticket/11170#comment:3
# - https://pastebin.com/NNmTzzXW
# This cannot be resolved unless the arguments passed to ffmpeg within copyparty are changed.
# As a temporary workaround, you can configure vips or pillow to process HEIF files first.
# To do this, set `th-dec` to `vips,ff,raw,pil` in the copyparty configuration.
FROM docker.io/copyparty/ac:beta
RUN apk add --no-cache --virtual .build-deps \
build-base python3-dev py3-pip
RUN apk add --no-cache \
py3-mutagen \
vips vips-heif vips-jxl \
libraw-tools
RUN pip3 install --break-system-packages --no-cache-dir \
pyvips \
pillow-heif pillow-avif-plugin \
rawpy
RUN apk del .build-deps && rm -rf /root/.cache /tmp/*
COPY --from=docker.io/mwader/static-ffmpeg:8.1.2 /ffmpeg /usr/bin/ffmpeg
COPY --from=docker.io/mwader/static-ffmpeg:8.1.2 /ffprobe /usr/bin/ffprobe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment