-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (32 loc) · 1010 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.12-alpine3.20
RUN apk add --update --no-cache libgcc ffmpeg
# beets==1.6.0 + patches
RUN set -eux; \
BUILD_DEPS='git cargo'; \
apk add --update --no-cache $BUILD_DEPS; \
python3 -m pip install \
flask==2.1.2 \
flask-cors==4.0.0 \
Werkzeug==2.2.2 \
git+https://github.com/beetbox/beets.git@c75f07a0da6c622d3cd0f5aad0a08edaea360dad#egg=beets \
beetstream==1.4.0 \
ffmpeg-python==0.2.0 \
beets-webm3u==0.6.4 \
beets-webrouter==0.4.0; \
apk del --purge $BUILD_DEPS
#git+https://github.com/mgoltzsche/beets-webrouter.git@23cc3d6f871299fb42986c99c683960be91f80b2#egg=beets-webrouter
RUN set -eux; \
addgroup -g 1000 beets; \
adduser -Su 1000 -G beets beets; \
mkdir -m750 /data; \
chown beets:beets /data; \
mkdir /entrypoint.d; \
printf '#!/bin/sh\n' > /entrypoint.d/00.sh; \
chmod +x /entrypoint.d/00.sh
COPY config.web.yaml /etc/beets/config.yaml
COPY entrypoint.sh /
ENV BEETSDIR=/etc/beets
USER beets:beets
WORKDIR /data
ENTRYPOINT ["/entrypoint.sh"]
CMD ["webrouter"]