feat(scrobble): send Subsonic scrobble on playback start (now-playing)

This commit is contained in:
joelilas
2026-01-26 18:45:48 +01:00
parent 2bd20b397d
commit c1952b0002
3 changed files with 66 additions and 1 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM python:3.11-alpine
# Ensure deterministic, unbuffered logs
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt requirements.txt
RUN apk add --no-cache build-base ffmpeg libffi libffi-dev libsodium libsodium-dev \
&& pip3 install --no-cache-dir -r requirements.txt \
&& apk del build-base libffi-dev libsodium-dev
RUN adduser -D -h /app app \
&& chown -R app:app /app
COPY --chown=app:app . .
USER app
# Set stop signal to SIGTERM to ensure clean shutdown
STOPSIGNAL SIGTERM
CMD ["python3", "/app/discodrome.py"]