aboutsummaryrefslogtreecommitdiffstats
path: root/onceaday/Dockerfile
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-04-19 21:41:50 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2021-04-19 21:41:50 +0100
commit6f29d39a9727688f7f4b25670614abbe66baa957 (patch)
tree660b46805d3e52113f38a4a41bedfa8ea8c03bda /onceaday/Dockerfile
parentb37b71c5209c44a02679b14eca4215f9ec0824f2 (diff)
downloadSmallYTChannelBot-6f29d39a9727688f7f4b25670614abbe66baa957.tar.gz
SmallYTChannelBot-6f29d39a9727688f7f4b25670614abbe66baa957.zip
added cron docker container, added docker-compose
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