17 lines
399 B
Docker
17 lines
399 B
Docker
FROM ghcr.io/blakeblackshear/frigate:stable
|
|
|
|
# Install rsync
|
|
RUN apt-get update && apt-get install -y rsync cron
|
|
|
|
# Add your sync script
|
|
COPY sync_recordings.sh /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/sync_recordings.sh
|
|
|
|
# Add crontab file
|
|
COPY crontab /etc/cron.d/sync-cron
|
|
RUN chmod 0644 /etc/cron.d/sync-cron
|
|
RUN crontab /etc/cron.d/sync-cron
|
|
|
|
# Run cron in the foreground
|
|
CMD ["cron", "-f"]
|