diff --git a/.gitignore b/.gitignore index c2111fc..8661818 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .env -.vscode \ No newline at end of file +.vscode diff --git a/DOCKERFILE b/DOCKERFILE index 7de6c73..caa6907 100644 --- a/DOCKERFILE +++ b/DOCKERFILE @@ -20,8 +20,10 @@ RUN apt update && \ vim \ cron +# Copy files COPY isalive.sh . COPY cron.conf . COPY start.sh . +# Start script CMD ["./start.sh"] diff --git a/cron.conf b/cron.conf index 7b783a2..ba26390 100644 --- a/cron.conf +++ b/cron.conf @@ -1 +1,2 @@ +# Run the script every 5 minutes */5 * * * * bash /downdetector/isalivescript.sh