14 lines
237 B
Docker
14 lines
237 B
Docker
|
FROM openjdk:16-slim
|
||
|
|
||
|
RUN apt update
|
||
|
RUN apt install -y xxd cron
|
||
|
|
||
|
COPY cron-backup /etc/cron.d/minecraft-backup
|
||
|
|
||
|
RUN chmod 0644 /etc/cron.d/minecraft-backup
|
||
|
RUN crontab /etc/cron.d/minecraft-backup
|
||
|
|
||
|
RUN touch /var/log/cron.log
|
||
|
|
||
|
CMD cron
|