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.
23 lines
660 B
23 lines
660 B
# Snapraid 12.0
|
|
FROM ubuntu:22.04
|
|
|
|
RUN apt update
|
|
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y python3 git snapraid smartmontools tzdata cron
|
|
RUN git clone https://github.com/Chronial/snapraid-runner.git /app/snapraid-runner
|
|
RUN chmod +x /app/snapraid-runner/snapraid-runner.py
|
|
|
|
RUN echo '0 3 * * * /usr/bin/python3 /app/snapraid-runner/snapraid-runner.py -c /config/snapraid-runner.conf' > /etc/cron.d/snapraid
|
|
|
|
# Give execution rights on the cron job
|
|
RUN chmod 0644 /etc/cron.d/snapraid
|
|
|
|
# Apply cron job
|
|
RUN crontab /etc/cron.d/snapraid
|
|
|
|
VOLUME /mnt /config
|
|
|
|
COPY /docker-entry.sh /
|
|
RUN chmod 755 /docker-entry.sh
|
|
|
|
CMD ["/docker-entry.sh"]
|