Browse Source

ajout curl pour healthcheck

master
Julien Cabillot 3 years ago
committed by root
parent
commit
4a98cd4b23
1 changed files with 6 additions and 6 deletions
  1. 12
      Dockerfile

12
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"]
Loading…
Cancel
Save