27 lines
493 B
Plaintext
27 lines
493 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 nano cron
|
|
|
|
# Copy files
|
|
COPY isalive.sh .
|
|
COPY cron.conf .
|
|
COPY start.sh .
|
|
|
|
# Start script
|
|
CMD ["./start.sh"]
|