]> git.friedersdorff.com Git - max/remindme.git/commitdiff
Add basic Dockerfile for this app master
authorMaximilian Friedersdorff <max@friedersdorff.com>
Sun, 22 Dec 2019 21:13:32 +0000 (21:13 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Sun, 22 Dec 2019 21:13:32 +0000 (21:13 +0000)
Dockerfile [new file with mode: 0644]

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..706806d
--- /dev/null
@@ -0,0 +1,8 @@
+FROM python:3-alpine
+
+ADD remindme.py remindme.py
+
+RUN pip3 install croniter IMAPClient python-dateutil \
+       && echo 0 > ./remindme_lastrun
+
+CMD python3 ./remindme.py $(cat ./remindme_lastrun) > ./remindme_lastrun