feat: added rest of the envs and workdir
This commit is contained in:
23
DOCKERFILE
23
DOCKERFILE
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user