mirror of https://github.com/x89/Shreddit
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…
Reference in new issue