You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
593 B
17 lines
593 B
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 /
|
|
RUN chmod 755 /docker-entry.sh
|
|
|
|
CMD ["/docker-entry.sh"]
|