From 9b243929fa0cd587bc6340facb3df1009f3740fc Mon Sep 17 00:00:00 2001 From: Bogdan Grosu Date: Fri, 1 Mar 2024 12:00:20 +0000 Subject: [PATCH] fix(iptvboss): enable cronitor --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 19cf1f4..7d40725 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,14 @@ RUN yum install -y wget cronie vlc \ # Create a new user with home directory set to /headless RUN useradd -m -d /headless -s /bin/bash iptvboss +#Configure cronitor +ARG CRONITOR_ENABLE=false +ENV CRONITOR_KEY=$CRONITOR_KEY + +RUN if [ "$CRONITOR_ENABLE" = "true" ]; then \ + curl https://cronitor.io/install-linux?sudo=1 -H "API-KEY: $CRONITOR_KEY" | sh; \ + fi + # Set the working directory WORKDIR /headless @@ -48,11 +56,6 @@ ENV PATH="/usr/lib/iptvboss/bin:${PATH}" # Apply cron job RUN crontab /var/spool/crontab/iptvboss/iptvboss-cron -#Configure cronitor -ARG CRONITOR_ENABLE=false -ENV CRONITOR_KEY=$CRONITOR_KEY - RUN if [ "$CRONITOR_ENABLE" = "true" ]; then \ - curl https://cronitor.io/install-linux?sudo=1 -H "API-KEY: $CRONITOR_KEY" | sh && \ cronitor discover; \ fi