aboutsummaryrefslogtreecommitdiffstats
path: root/onceaday/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'onceaday/Dockerfile')
-rw-r--r--onceaday/Dockerfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/onceaday/Dockerfile b/onceaday/Dockerfile
new file mode 100644
index 0000000..b737d90
--- /dev/null
+++ b/onceaday/Dockerfile
@@ -0,0 +1,10 @@
+FROM debian:latest
+MAINTAINER Eden Attenborough "eddie.atten.ea29@gmail.com"
+RUN apt-get update -y
+RUN apt-get install -y tzdata python3-pip python-dev build-essential pkg-config cron
+COPY . /app
+WORKDIR /app
+COPY onceaday/crontab /etc/cron.d/oad-crontab
+RUN chmod 0644 /etc/cron.d/oad-crontab && crontab /etc/cron.d/oad-crontab
+RUN pip3 install -r onceaday/requirements.txt
+ENTRYPOINT ["cron", "-f"] \ No newline at end of file