mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
30 lines
957 B
Docker
30 lines
957 B
Docker
FROM alpine:latest
|
|
WORKDIR /z
|
|
|
|
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 \
|
|
wget \
|
|
py3-pillow py3-pip \
|
|
ffmpeg \
|
|
vips-jxl vips-heif vips-poppler vips-magick \
|
|
py3-numpy fftw libsndfile \
|
|
&& python3 -m pip install pyvips \
|
|
&& apk --no-cache add -t .bd \
|
|
bash wget gcc g++ make cmake patchelf \
|
|
python3-dev ffmpeg-dev fftw-dev libsndfile-dev \
|
|
py3-wheel py3-numpy-dev \
|
|
&& bash install-deps.sh \
|
|
&& apk del py3-pip .bd \
|
|
&& rm -rf /var/cache/apk/* \
|
|
&& chmod 777 /root \
|
|
&& ln -s /root/vamp /root/.local / \
|
|
&& mkdir /cfg /w \
|
|
&& chmod 777 /cfg /w \
|
|
&& echo % /cfg > initcfg
|
|
|
|
COPY i/dist/copyparty-sfx.py ./
|
|
WORKDIR /w
|
|
ENTRYPOINT ["python3", "/z/copyparty-sfx.py", "-c", "/z/initcfg"]
|