# Navidrome -> betoniarka request bridge (external component; see README.md).
#
# Build from THIS directory (it is self-contained and shares no code with the
# rest of the repo):
#   docker build -t navidrome-bridge .
FROM python:3.13-slim

WORKDIR /app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY bridge.py ./

# Remembers which starred tracks were already queued, so a restart does not
# re-send them.
VOLUME ["/data"]

# Unbuffered so `docker logs` shows what happened as it happens.
ENV PYTHONUNBUFFERED=1

CMD ["python", "bridge.py"]
