|
|
|
@ -1,11 +1,10 @@
|
|
|
|
# Snapraid 12.0
|
|
|
|
# Snapraid 12.0
|
|
|
|
FROM alpine:latest
|
|
|
|
FROM debian:bullseye
|
|
|
|
|
|
|
|
|
|
|
|
RUN apk --update add python3 git smartmontools tzdata && \
|
|
|
|
RUN apt update && apt upgrade &&\
|
|
|
|
apk add snapraid --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing --allow-untrusted && \
|
|
|
|
apt install python3 git snapraid smartmontools tzdata &&\
|
|
|
|
git clone https://github.com/Chronial/snapraid-runner.git /app/snapraid-runner && \
|
|
|
|
git clone https://github.com/Chronial/snapraid-runner.git /app/snapraid-runner && \
|
|
|
|
chmod +x /app/snapraid-runner/snapraid-runner.py && \
|
|
|
|
chmod +x /app/snapraid-runner/snapraid-runner.py && \
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN echo '0 3 * * * /usr/bin/python3 /app/snapraid-runner/snapraid-runner.py -c /config/snapraid-runner.conf' > /etc/crontabs/root
|
|
|
|
RUN echo '0 3 * * * /usr/bin/python3 /app/snapraid-runner/snapraid-runner.py -c /config/snapraid-runner.conf' > /etc/crontabs/root
|
|
|
|
|
|
|
|
|
|
|
|
|