From 6ccdd73fe0b38598aa3367f014d78346d58c70e3 Mon Sep 17 00:00:00 2001 From: Leonard Excoffier <48970393+excoffierleonard@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:32:58 -0400 Subject: [PATCH] feat: added rest of the envs and workdir --- DOCKERFILE | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/DOCKERFILE b/DOCKERFILE index 51e0917..7de6c73 100644 --- a/DOCKERFILE +++ b/DOCKERFILE @@ -1,18 +1,27 @@ +# Downdetector Dockerfile FROM debian +# Set required environment variables ENV WEBSITES='("google.com" "yahoo.com")' - ENV WEBHOOK_URL="" - ENV DISCORD_ID="" -RUN apt update && apt install -y \ +# Set fixed environment variables +ENV CRON_CONFIG=/downdetector/cron.conf + +# Set working directory +WORKDIR /downdetector + +# Update and install dependencies +RUN apt update && \ + apt upgrade -y && \ bash \ curl \ + vim \ cron -COPY ./start.sh /start.sh - -CMD ["/start.sh"] - +COPY isalive.sh . +COPY cron.conf . +COPY start.sh . +CMD ["./start.sh"]