parent
e5afb74642
commit
ac28428b93
@ -0,0 +1,15 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN apk --update add python git && \
|
||||||
|
apk add snapraid --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing --allow-untrusted && \
|
||||||
|
git clone https://github.com/Chronial/snapraid-runner.git /app/snapraid-runner && \
|
||||||
|
chmod +x /app/snapraid-runner/snapraid-runner.py && \
|
||||||
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
RUN echo '0 3 * * * root /usr/bin/python /app/snapraid-runner/snapraid-runner.py -c /config/snapraid-runner.conf' > /etc/crontabs/root
|
||||||
|
|
||||||
|
VOLUME /mnt /config
|
||||||
|
|
||||||
|
COPY /docker-entry.sh /
|
||||||
|
|
||||||
|
CMD ["/docker-entry.sh"]
|
||||||
Loading…
Reference in new issue