Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -17
Dockerfile
CHANGED
|
@@ -1,28 +1,21 @@
|
|
| 1 |
-
FROM mintplexlabs/anythingllm:
|
| 2 |
|
| 3 |
USER root
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
RUN mkdir -p /
|
| 7 |
-
|
| 8 |
-
chmod -R 777 /app/server/storage /app/local_data
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
# We point the main storage to the bucket for your PDFs
|
| 12 |
ENV STORAGE_DIR=/app/server/storage
|
|
|
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
ENV
|
| 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 |
-
#
|
| 28 |
-
CMD ["/
|
|
|
|
| 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"]
|