ajout curl pour healthcheck

This commit is contained in:
root 2017-11-01 18:45:44 +01:00
parent 14ac4d9cb4
commit 046ead009f

View File

@ -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"]