From 574635bf096f8cde0a7b825f300c326157e8e6ca Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 25 May 2021 12:18:25 +0100 Subject: dockerised the program --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fb7d715 --- /dev/null +++ b/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 crontab /etc/cron.d/oad-crontab +RUN chmod 0644 /etc/cron.d/oad-crontab && crontab /etc/cron.d/oad-crontab +RUN pip3 install -r requirements.txt +ENTRYPOINT ["cron", "-f"] \ No newline at end of file -- cgit v1.2.3