Files
downdetector/DOCKERFILE
2024-09-07 17:36:40 -04:00

30 lines
497 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 && \
bash \
curl \
vim \
cron
# Copy files
COPY isalive.sh .
COPY cron.conf .
COPY start.sh .
# Start script
CMD ["./start.sh"]