sam-fritz commited on
Commit
3125828
·
verified ·
1 Parent(s): a563807

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -17
Dockerfile CHANGED
@@ -1,28 +1,21 @@
1
- FROM mintplexlabs/anythingllm:latest
2
 
3
  USER root
4
 
5
- # Create local folders for EVERYTHING that needs to 'lock'
6
- RUN mkdir -p /app/server/storage /app/local_data/lancedb /app/local_data/vector-cache && \
7
- chown -R 1000:1000 /app/server/storage /app/local_data && \
8
- chmod -R 777 /app/server/storage /app/local_data
9
 
10
- # Environment Variables
11
- # We point the main storage to the bucket for your PDFs
12
  ENV STORAGE_DIR=/app/server/storage
 
13
 
14
- # WE FORCE THE DATABASE AND VECTORS TO STAY LOCAL (Fixes the 'Table not found' error)
15
- ENV DB_PATH=/app/local_data/anythingllm.db
16
- ENV VECTOR_DB_PATH=/app/local_data/lancedb
17
- ENV VECTOR_CACHE_DIR=/app/local_data/vector-cache
18
-
19
- # Ensure the app uses the local disk for the heavy lifting
20
- ENV STORAGE_LOCATION=/app/local_data
21
 
22
- ENV SERVER_PORT=7860
23
  EXPOSE 7860
24
 
25
  USER 1000
26
 
27
- # Runtime permission fix
28
- CMD ["/bin/bash", "-c", "chmod -R 777 /app/server/storage && /usr/local/bin/docker-entrypoint.sh"]
 
1
+ FROM mintplexlabs/anythingllm:pg
2
 
3
  USER root
4
 
5
+ # Setup the collector directory locally for processing files
6
+ RUN mkdir -p /collector/hotdir && \
7
+ chmod -R 777 /collector
 
8
 
9
+ # Point file storage directly to the HF Storage Bucket
 
10
  ENV STORAGE_DIR=/app/server/storage
11
+ ENV SERVER_PORT=7860
12
 
13
+ # Force AnythingLLM to use PGVector instead of LanceDB
14
+ ENV VECTOR_DB="pgvector"
 
 
 
 
 
15
 
 
16
  EXPOSE 7860
17
 
18
  USER 1000
19
 
20
+ # Boot the app natively
21
+ CMD ["/usr/local/bin/docker-entrypoint.sh"]