Kaballas commited on
Commit
6645f98
·
verified ·
1 Parent(s): 68a431f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -5
Dockerfile CHANGED
@@ -17,15 +17,26 @@
17
  #CMD sqlite_web --host=0.0.0.0 --port=${SERVER_PORT} ${SQLITE_DATABASE}
18
 
19
  FROM mintplexlabs/anythingllm:render
 
 
20
  USER root
 
21
  # Create storage directory and link
22
- RUN mkdir -p /data/storage
23
- RUN ln -s /data/storage /storage
24
- # Switch to user for AnythingLLM
25
- USER anythingllm
 
 
26
  # Set environment variables for storage and server port
27
  ENV STORAGE_DIR="/data/storage"
28
  ENV SERVER_PORT=7860
 
 
29
  USER anythingllm
30
- #Set the entry point to run the script and the main application
 
31
  ENTRYPOINT ["/bin/bash","/usr/local/bin/render-entrypoint.sh"]
 
 
 
 
17
  #CMD sqlite_web --host=0.0.0.0 --port=${SERVER_PORT} ${SQLITE_DATABASE}
18
 
19
  FROM mintplexlabs/anythingllm:render
20
+
21
+ # Switch to root user to perform administrative tasks
22
  USER root
23
+
24
  # Create storage directory and link
25
+ RUN mkdir -p /data/storage && \
26
+ ln -s /data/storage /storage
27
+
28
+ # Change ownership of the storage directory to the anythingllm user
29
+ RUN chown -R anythingllm:anythingllm /data/storage
30
+
31
  # Set environment variables for storage and server port
32
  ENV STORAGE_DIR="/data/storage"
33
  ENV SERVER_PORT=7860
34
+
35
+ # Switch back to the anythingllm user
36
  USER anythingllm
37
+
38
+ # Set the entry point to run the script and the main application
39
  ENTRYPOINT ["/bin/bash","/usr/local/bin/render-entrypoint.sh"]
40
+
41
+
42
+