diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2026-02-26 18:13:08 +0000 |
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2026-02-26 18:13:08 +0000 |
| commit | 59313925ddce08cbcadca8605fc5a3c1d5b6d439 (patch) | |
| tree | 024af4b7a0dfc9eefb970c55e4f350f9b7fbb0e2 /Dockerfile | |
| parent | 3fbc69f98f42e4a3fef5743f69845d2d95e50162 (diff) | |
| download | PingLogger-59313925ddce08cbcadca8605fc5a3c1d5b6d439.tar.gz PingLogger-59313925ddce08cbcadca8605fc5a3c1d5b6d439.zip | |
Initial commit
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 9 |
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 |
