Update Dockerfile
Browse files13 unmodified lines141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626313 unmodified linesCOPY --chown=user:user start.sh /home/user/start.shRUN chmod +x /home/user/start.shENTRYPOINT ["/home/user/start.sh"]#!/bin/bash# Configuration from your imagesREPO_ID=HF_TOKEN=""echo "--- System Starting ---"#echo "Restoring files from $REPO_ID..."huggingface-cli download $REPO_ID --local-dir /home/user/storage --repo-type dataset --token $HF_TOKEN#cat <<EOF > /home/user/auto_backup.sh#!/bin/bashwhile true; dosleep 300echo "Backing up data to Hugging Face..."huggingface-cli upload $REPO_ID /home/user/storage . --repo-type=dataset --token=$HF_TOKENdoneEOFchmod +x /home/user/auto_backup.sh./auto_backup.sh &#cat <<EOF > /home/user/final_backup.sh#!/bin/bash#echo "Hugging Face is about to restart soon. Taking final backup..."huggingface-cli upload $REPO_ID /home/user/storage . --repo-type=dataset --token=$HF_TOKENEOFchmod +x /home/user/final_backup.sh./final_backup.sh &# เงช.echo "--- System is Ready. Access via Web Terminal ---"ttyd -p 7860 -W bash13 unmodified lines1415161713 unmodified linesCOPY --chown=user:user start.sh /home/user/start.shRUN chmod +x /home/user/start.shENTRYPOINT ["/home/user/start.sh"]
Dockerfile+1-47