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"]