Dockerfile: use MEDIARIP__SERVER__PORT in healthcheck

Healthcheck now respects the PORT env var instead of hardcoding 8000,
so containers running on non-default ports get proper health status.
This commit is contained in:
xpltd 2026-03-21 21:13:38 -05:00
parent 6cb3828b92
commit 245ec0e567

View file

@ -63,6 +63,6 @@ ENV MEDIARIP__DOWNLOADS__OUTPUT_DIR=/downloads \
EXPOSE 8000 EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:8000/api/health || exit 1 CMD curl -f http://localhost:${MEDIARIP__SERVER__PORT:-8000}/api/health || exit 1
CMD ["python", "start.py"] CMD ["python", "start.py"]