mirror of
https://github.com/9001/copyparty.git
synced 2026-06-19 12:42:51 -06:00
rawpy is still supported but will not be bundled by default due to security concerns dcraw_emu reads more formats than rawpy + gives better quality (we told rawpy to use embedded thumbs), so also much slower dcraw_emu must be combined with libvips or pillow (equivalent) other alternatives considered: libvips + a full imagemagick does a different subset of formats, less than dcraw_emu, yet is 3x slower and eats ram magick wins wrt formats but is even slower (4x of dcraw_emu)
43 lines
1.6 KiB
Docker
43 lines
1.6 KiB
Docker
FROM alpine:latest
|
|
WORKDIR /z
|
|
LABEL org.opencontainers.image.url="https://github.com/9001/copyparty" \
|
|
org.opencontainers.image.source="https://github.com/9001/copyparty" \
|
|
org.opencontainers.image.licenses="MIT" \
|
|
org.opencontainers.image.title="copyparty-dj" \
|
|
org.opencontainers.image.description="copyparty with all optional dependencies, including musical key / bpm detection"
|
|
ENV XDG_CONFIG_HOME=/cfg
|
|
ARG ADD_PKG=""
|
|
|
|
COPY i/bin/mtag/install-deps.sh ./
|
|
COPY i/bin/mtag/audio-bpm.py /mtag/
|
|
COPY i/bin/mtag/audio-key.py /mtag/
|
|
RUN apk add -U !pyc ${ADD_PKG} \
|
|
tzdata wget mimalloc2 mimalloc2-insecure \
|
|
py3-jinja2 py3-argon2-cffi py3-pyzmq \
|
|
py3-openssl py3-paramiko py3-pillow \
|
|
py3-pip \
|
|
py3-magic \
|
|
vips-jxl vips-poppler vips-magick \
|
|
py3-numpy fftw libsndfile \
|
|
vamp-sdk vamp-sdk-libs keyfinder-cli \
|
|
libraw-tools \
|
|
&& apk add -t .bd \
|
|
bash wget gcc g++ make cmake patchelf \
|
|
ffmpeg ffmpeg-dev \
|
|
python3-dev fftw-dev libsndfile-dev \
|
|
py3-wheel py3-numpy-dev \
|
|
vamp-sdk-dev \
|
|
&& rm -f /usr/lib/python3*/EXTERNALLY-MANAGED \
|
|
&& python3 -m pip install pyvips \
|
|
&& bash install-deps.sh \
|
|
&& apk del py3-pip .bd \
|
|
&& chmod 777 /root \
|
|
&& ln -s /root/vamp /root/.local /
|
|
|
|
COPY i innvikler.sh ./
|
|
RUN ash innvikler.sh dj
|
|
|
|
WORKDIR /state
|
|
EXPOSE 3923
|
|
ENTRYPOINT ["/bin/ash", "/z/cpp.sh", "-c", "/z/initcfg"]
|