Kaballas commited on
Commit
08aa66f
·
verified ·
1 Parent(s): c61664b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -13,12 +13,11 @@ USER anythingllm
13
  ENV STORAGE_DIR="/data/storage"
14
  ENV SERVER_PORT=7860
15
 
16
- cp -r /data/storage/ /app/storage-backup/
17
-
18
- # Switch back to root to modify permissions
19
- USER root
20
 
21
  # Ensure the script has execution permissions
 
22
  RUN chmod +x /usr/local/bin/copy-storage.sh
23
 
24
  # Switch back to the anythingllm user
 
13
  ENV STORAGE_DIR="/data/storage"
14
  ENV SERVER_PORT=7860
15
 
16
+ # Copy the custom script to handle the backup
17
+ COPY copy-storage.sh /usr/local/bin/copy-storage.sh
 
 
18
 
19
  # Ensure the script has execution permissions
20
+ USER root
21
  RUN chmod +x /usr/local/bin/copy-storage.sh
22
 
23
  # Switch back to the anythingllm user