Files
wizarr/tests/test_dockerfile.py
Matthieu B 080752b752 fix: default Docker healthcheck port (#1331)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-06 10:57:46 +02:00

12 lines
357 B
Python

from pathlib import Path
DOCKERFILE = Path(__file__).resolve().parents[1] / "Dockerfile"
def test_dockerfile_sets_default_bind_port_for_runtime_and_healthcheck():
dockerfile = DOCKERFILE.read_text()
assert "ENV HOST=0.0.0.0" in dockerfile
assert "ENV PORT=5690" in dockerfile
assert "http://localhost:${PORT:-5690}/health" in dockerfile