feat: added rest of the envs and workdir

This commit is contained in:
Leonard Excoffier
2024-09-07 17:32:58 -04:00
parent aa3b4100f7
commit 6ccdd73fe0

View File

@@ -1,18 +1,27 @@
# Downdetector Dockerfile
FROM debian FROM debian
# Set required environment variables
ENV WEBSITES='("google.com" "yahoo.com")' ENV WEBSITES='("google.com" "yahoo.com")'
ENV WEBHOOK_URL="" ENV WEBHOOK_URL=""
ENV DISCORD_ID="" 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 \ bash \
curl \ curl \
vim \
cron cron
COPY ./start.sh /start.sh COPY isalive.sh .
COPY cron.conf .
CMD ["/start.sh"] COPY start.sh .
CMD ["./start.sh"]