aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..90f147c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,9 @@
+FROM reg.reaweb.uk/cron
+
+RUN apt update -y
+RUN apt install -y python3-pip iputils-ping
+COPY . /app
+WORKDIR /app
+RUN pip3 install -r requirements.txt
+
+RUN echo "*/1 * * * * root python3 /app/pingLogger.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab \ No newline at end of file