Skip to content
Snippets Groups Projects
Commit e9b29f14 authored by TheBroTMv2's avatar TheBroTMv2
Browse files

Update Dockerfile

added cron for backup, needs to be adjustet to the time when the backup is started if other backuo solution is used (use case for external backuo suite like duplicati etc)
parent c456a5c9
No related branches found
No related tags found
1 merge request!1Master
......@@ -11,10 +11,14 @@ ADD papermc.sh .
ADD backup.sh .
ADD restore.sh .
RUN apt-get update \
&& apt-get install wget curl jq webp screen grep -y \
&& apt-get install wget curl jq webp screen cron -y \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /papermc \
&& mkdir /backup
RUN crontab -l > mycron \
&& echo "59 05 * * * screen -r mc -p 0 -X stuff "save-off^M"" >> mycron \
&& crontab mycron \
&& rm mycron
# Start script
CMD ["sh", "./papermc.sh"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment