aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 6db01446c1873c7af1c1a24d76337029f0a83dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM ubuntu:latest
MAINTAINER Eden Attenborough "eda@e.email"
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y
RUN apt-get install -y python3-pip python3-dev build-essential wkhtmltopdf cron
RUN mkdir githubPrinter
COPY . /githubPrinter
WORKDIR /githubPrinter
RUN pip3 install -r requirements.txt

RUN echo "*/15 * * * * root python3 /githubPrinter/printIssues.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab
ENTRYPOINT ["cron", "-f"]