2022-08-17 21:09:22 +08:00
|
|
|
# From https://github.com/h2non/imaginary/blob/master/Dockerfile
|
2023-03-01 21:06:33 +08:00
|
|
|
FROM nextcloud/imaginary:20230301
|
2022-08-25 21:06:23 +08:00
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN set -ex; \
|
|
|
|
\
|
|
|
|
apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2022-10-07 04:34:10 +08:00
|
|
|
netcat \
|
2022-08-25 21:06:23 +08:00
|
|
|
; \
|
2023-03-07 17:57:51 +08:00
|
|
|
echo "deb http://deb.debian.org/debian bookworm main" > /etc/apt/sources.list.d/bookworm.list; \
|
2023-03-07 17:04:11 +08:00
|
|
|
apt-get update; \
|
2023-03-07 16:56:03 +08:00
|
|
|
apt-get install -t bookworm -y --no-install-recommends \
|
2023-03-06 18:42:00 +08:00
|
|
|
libheif1 \
|
|
|
|
libde265-0 \
|
|
|
|
libx265-199 \
|
|
|
|
libvips \
|
|
|
|
; \
|
2023-03-07 17:04:11 +08:00
|
|
|
rm /etc/apt/sources.list.d/bookworm.list; \
|
2022-08-25 21:06:23 +08:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
USER nobody
|
|
|
|
|
2023-02-01 18:38:59 +08:00
|
|
|
ENTRYPOINT ["/usr/local/bin/imaginary", "-return-size", "-max-allowed-resolution", "222.2"]
|
2022-11-11 22:28:48 +08:00
|
|
|
|
2023-01-30 21:54:09 +08:00
|
|
|
HEALTHCHECK CMD nc -z localhost 9000 || exit 1
|
2023-01-30 22:33:12 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
2023-03-08 18:08:03 +08:00
|
|
|
|
|
|
|
# https://github.com/h2non/imaginary#memory-issues
|
|
|
|
ENV MALLOC_ARENA_MAX=2
|