diff options
Diffstat (limited to 'cron_Dockerfile')
-rw-r--r-- | cron_Dockerfile | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/cron_Dockerfile b/cron_Dockerfile deleted file mode 100644 index ed4c9d1..0000000 --- a/cron_Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM ubuntu:latest
-MAINTAINER Eden Attenborough "eda@e.email"
-ENV TZ=Europe/London
-RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
-RUN apt-get update -y
-RUN apt-get install -y python3-pip cron
-RUN mkdir app
-COPY . /app
-WORKDIR /app
-RUN touch .docker
-RUN pip3 install -r cron_requirements.txt
-
-RUN echo "*/1 * * * * root python3 /app/devices.py nothourly > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab
-RUN echo "*/1 * * * * root ( sleep 30; python3 /app/devices.py nothourly > /proc/1/fd/1 2>/proc/1/fd/2 )" >> /etc/crontab
-RUN echo "@daily root python3 /app/devices.py daily > /proc/1/fd/1 2>/proc/1/fd/2" >> /etc/crontab
-ENTRYPOINT ["bash"]
-CMD ["entrypoint.sh"]
\ No newline at end of file |