Files
downdetector/DOCKERFILE
2024-09-07 17:53:34 -04:00

27 lines
488 B
Plaintext

# Downdetector Dockerfile
FROM debian
# Set required environment variables
ENV WEBSITES="google.com,yahoo.com"
ENV WEBHOOK_URL=""
ENV DISCORD_ID=""
# 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 && \
apt install -y bash curl vim cron
# Copy files
COPY isalive.sh .
COPY cron.conf .
COPY start.sh .
# Start script
CMD ["./start.sh"]