tkgray commited on
Commit
25b0ccd
·
verified ·
1 Parent(s): b2b78d0

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -4,3 +4,14 @@ ENV PORT=7860
4
  EXPOSE 7860
5
 
6
  RUN rm -rf /app/backend/data && ln -s /data /app/backend/data
 
 
 
 
 
 
 
 
 
 
 
 
4
  EXPOSE 7860
5
 
6
  RUN rm -rf /app/backend/data && ln -s /data /app/backend/data
7
+
8
+ # Ensure huggingface_hub is available for backups
9
+ RUN pip install --no-cache-dir huggingface_hub || true
10
+
11
+ # Copy backup + restore scripts
12
+ COPY backup.sh /backup.sh
13
+ COPY restore.sh /restore.sh
14
+ COPY start-with-backup.sh /start-with-backup.sh
15
+ RUN chmod +x /backup.sh /restore.sh /start-with-backup.sh
16
+
17
+ CMD ["/start-with-backup.sh"]