diff --git a/Dockerfile b/Dockerfile index 854c32f..7d393d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM python:alpine3.18 -RUN apk add --no-cache mariadb-client rclone supercronic docker restic zip -COPY . opt -RUN chmod +x /opt/entrypoint.sh -RUN chmod +x /opt/restic.sh -RUN pip install requests python-dotenv +FROM python:alpine3.18 +RUN apk add --no-cache mariadb-client rclone supercronic docker restic zip +COPY . opt +RUN chmod +x /opt/entrypoint.sh +RUN chmod +x /opt/restic.sh +RUN pip install requests python-dotenv CMD ["/opt/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 38cb0d0..4d53e71 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ -#!/bin/sh - -CRON_CONFIG_FILE="/opt/crontab" - -echo "${CRON} python /opt/seafile-backup.py" > $CRON_CONFIG_FILE - +#!/bin/sh + +CRON_CONFIG_FILE="/opt/crontab" + +echo "${CRON} python /opt/seafile-backup.py" > $CRON_CONFIG_FILE + exec supercronic -passthrough-logs -quiet $CRON_CONFIG_FILE \ No newline at end of file