From c2ddf547c64fb2f689b0d1a60d69102b99ab7b13 Mon Sep 17 00:00:00 2001 From: Dusan Cervenka Date: Wed, 9 Aug 2023 15:48:36 +0200 Subject: [PATCH 1/3] Update Dockerfile --- minidlna/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minidlna/Dockerfile b/minidlna/Dockerfile index d2888ad..3b03e48 100644 --- a/minidlna/Dockerfile +++ b/minidlna/Dockerfile @@ -10,4 +10,5 @@ ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] # Health check HEALTHCHECK --interval=10s --timeout=10s --retries=6 CMD \ - curl --silent --fail 127.0.0.1:8200 || exit 1 + sh -c 'test -n "$MINIDLNA_PORT" || MINIDLNA_PORT=8200; \ + curl --silent --fail "http://127.0.0.1:$MINIDLNA_PORT" || exit 1' From 765873faed35dd18b2e2c8c1e6442c1e088a0de2 Mon Sep 17 00:00:00 2001 From: Dusan Cervenka Date: Wed, 9 Aug 2023 16:20:35 +0200 Subject: [PATCH 2/3] Update Dockerfile --- minidlna/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/minidlna/Dockerfile b/minidlna/Dockerfile index 3b03e48..1da8d10 100644 --- a/minidlna/Dockerfile +++ b/minidlna/Dockerfile @@ -10,5 +10,4 @@ ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] # Health check HEALTHCHECK --interval=10s --timeout=10s --retries=6 CMD \ - sh -c 'test -n "$MINIDLNA_PORT" || MINIDLNA_PORT=8200; \ - curl --silent --fail "http://127.0.0.1:$MINIDLNA_PORT" || exit 1' + curl --silent --fail http://127.0.0.1:${MINIDLNA_PORT:-8200} || exit 1 From 7754761bd86885cdb9dbd2cf7826d3f9edde0697 Mon Sep 17 00:00:00 2001 From: Dusan Cervenka Date: Wed, 9 Aug 2023 16:22:46 +0200 Subject: [PATCH 3/3] Update Dockerfile --- minidlna/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minidlna/Dockerfile b/minidlna/Dockerfile index 1da8d10..c52efa7 100644 --- a/minidlna/Dockerfile +++ b/minidlna/Dockerfile @@ -10,4 +10,4 @@ ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] # Health check HEALTHCHECK --interval=10s --timeout=10s --retries=6 CMD \ - curl --silent --fail http://127.0.0.1:${MINIDLNA_PORT:-8200} || exit 1 + curl --silent --fail 127.0.0.1:"${MINIDLNA_PORT:-8200}" || exit 1