aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 90f147c4e971acb01484813a85627402973fa4e4 (plain)
1
2
3
4
5
6
7
8
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