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
|
||||
|
||||
# Set required environment variables
|
||||
ENV WEBSITES='("google.com" "yahoo.com")'
|
||||
|
||||
ENV WEBHOOK_URL=""
|
||||
|
||||
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 \
|
||||
curl \
|
||||
vim \
|
||||
cron
|
||||
|
||||
COPY ./start.sh /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
||||
COPY isalive.sh .
|
||||
COPY cron.conf .
|
||||
COPY start.sh .
|
||||
|
||||
CMD ["./start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user