Dockerfile to run Shreddit as an hourly cron job

pull/100/head
Mike Kusold 7 years ago
parent 62df1feb7c
commit 5789dc2c0b

@ -0,0 +1,11 @@
FROM python:alpine
COPY . /shreddit
WORKDIR /shreddit
RUN pip install -r requirements.txt && python setup.py install
VOLUME /config
WORKDIR /config
RUN echo "0 * * * * cd /config && /usr/local/bin/shreddit >> /dev/stdout" >> /etc/crontabs/root
CMD ["/usr/sbin/crond", "-l", "2", "-f"]
Loading…
Cancel
Save