ajout curl pour healthcheck
This commit is contained in:
parent
97e90dd22e
commit
4a98cd4b23
12
Dockerfile
12
Dockerfile
@ -8,8 +8,8 @@ RUN groupadd -r -g 666 sabnzbd && \
|
|||||||
# Add SABnzbd init script.
|
# Add SABnzbd init script.
|
||||||
#
|
#
|
||||||
|
|
||||||
COPY sabnzbd.sh /sabnzbd.sh
|
COPY "sabnzbd.sh" "/sabnzbd.sh"
|
||||||
RUN chmod 755 /sabnzbd.sh
|
RUN chmod 755 "/sabnzbd.sh"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Fix locales to handle UTF-8 characters.
|
# 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 && \
|
RUN export SABNZBD_VERSION=2.3.0 PAR2CMDLINE_VERSION=v0.6.14-mt1 && \
|
||||||
export DEBIAN_FRONTEND=noninteractive && \
|
export DEBIAN_FRONTEND=noninteractive && \
|
||||||
export BUILD_PACKAGES="automake build-essential curl python-dev python-pip" && \
|
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" && \
|
export RUNTIME_PACKAGES="ca-certificates p7zip-full python-cheetah python-yenc unrar unzip libgomp1 openssl python-cryptography python-openssl curl" && \
|
||||||
export PIP_PACKAGES="sabyenc" && \
|
export PIP_PACKAGES="sabyenc" && \
|
||||||
sed -i "s/ main$/ main contrib non-free/" /etc/apt/sources.list && \
|
sed -i "s/ main$/ main contrib non-free/" /etc/apt/sources.list && \
|
||||||
apt-get -q update && \
|
apt-get -q update && \
|
||||||
@ -61,9 +61,9 @@ EXPOSE 8080
|
|||||||
# Start SABnzbd.
|
# Start SABnzbd.
|
||||||
#
|
#
|
||||||
|
|
||||||
WORKDIR /sabnzbd
|
WORKDIR "/sabnzbd"
|
||||||
|
|
||||||
HEALTHCHECK --interval=10s \
|
HEALTHCHECK --interval="10s" \
|
||||||
CMD curl --fail "http://localhost:8080" || exit 1
|
CMD curl --fail "http://localhost:8080" || exit 1
|
||||||
|
|
||||||
CMD ["/sabnzbd.sh"]
|
CMD ["/sabnzbd.sh"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user