From 046ead009f3f219dc2ef75e8fc5909b04eece623 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Nov 2017 18:45:44 +0100 Subject: [PATCH] ajout curl pour healthcheck --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b2abc8..a2ae28b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ RUN groupadd -r -g 666 sabnzbd && \ # Add SABnzbd init script. # -COPY sabnzbd.sh /sabnzbd.sh -RUN chmod 755 /sabnzbd.sh +COPY "sabnzbd.sh" "/sabnzbd.sh" +RUN chmod 755 "/sabnzbd.sh" # # Fix locales to handle UTF-8 characters. @@ -23,8 +23,8 @@ ENV LANG C.UTF-8 RUN export SABNZBD_VERSION=2.3.0 PAR2CMDLINE_VERSION=v0.6.14-mt1 && \ export DEBIAN_FRONTEND=noninteractive && \ - export BUILD_PACKAGES="automake build-essential curl python-dev python-pip" && \ - export RUNTIME_PACKAGES="ca-certificates p7zip-full python-cheetah python-yenc unrar unzip libgomp1 openssl python-cryptography python-openssl" && \ + export BUILD_PACKAGES="automake build-essential python-dev python-pip" && \ + export RUNTIME_PACKAGES="ca-certificates p7zip-full python-cheetah python-yenc unrar unzip libgomp1 openssl python-cryptography python-openssl curl" && \ export PIP_PACKAGES="sabyenc" && \ sed -i "s/ main$/ main contrib non-free/" /etc/apt/sources.list && \ apt-get -q update && \ @@ -61,9 +61,9 @@ EXPOSE 8080 # Start SABnzbd. # -WORKDIR /sabnzbd +WORKDIR "/sabnzbd" -HEALTHCHECK --interval=10s \ +HEALTHCHECK --interval="10s" \ CMD curl --fail "http://localhost:8080" || exit 1 CMD ["/sabnzbd.sh"]