10 lines
377 B
Plaintext
10 lines
377 B
Plaintext
FROM mysql:8-debian
|
|
RUN apt-get update --allow-unauthenticated --allow-insecure-repositories
|
|
RUN apt-get -y install -qq --force-yes cron
|
|
RUN echo "Log Start" >> /var/log/cron.log
|
|
RUN mkdir /backup
|
|
ADD backup.sh /usr/local/bin/
|
|
ADD mysqlCron /etc/cron.d/mysqlCron
|
|
RUN chmod 0644 /etc/cron.d/mysqlCron
|
|
RUN chmod 0744 /usr/local/bin/backup.sh
|
|
CMD cron && tail -f /var/log/cron.log |