diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ea6ce1 --- /dev/null +++ b/Dockerfile @@ -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"]