Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +11 -3
Dockerfile
CHANGED
@@ -18,19 +18,27 @@
|
|
18 |
# - Your container will build and boot. You now have AnythingLLM on HuggingFace. Your data is stored in the persistent storage attached.
|
19 |
# Have Fun 🤗
|
20 |
# Have issues? Check the logs on HuggingFace for clues.
|
|
|
21 |
FROM mintplexlabs/anythingllm:render
|
22 |
|
23 |
USER root
|
|
|
|
|
24 |
RUN mkdir -p /data/storage
|
25 |
RUN ln -s /data/storage /storage
|
|
|
|
|
26 |
USER anythingllm
|
27 |
|
|
|
28 |
ENV STORAGE_DIR="/data/storage"
|
29 |
ENV SERVER_PORT=7860
|
30 |
|
|
|
31 |
COPY copy-storage.sh /usr/local/bin/copy-storage.sh
|
32 |
-
RUN chmod +x /usr/local/bin/copy-storage.sh
|
33 |
-
|
34 |
|
|
|
|
|
35 |
|
36 |
-
|
|
|
|
18 |
# - Your container will build and boot. You now have AnythingLLM on HuggingFace. Your data is stored in the persistent storage attached.
|
19 |
# Have Fun 🤗
|
20 |
# Have issues? Check the logs on HuggingFace for clues.
|
21 |
+
|
22 |
FROM mintplexlabs/anythingllm:render
|
23 |
|
24 |
USER root
|
25 |
+
|
26 |
+
# Create storage directory and link
|
27 |
RUN mkdir -p /data/storage
|
28 |
RUN ln -s /data/storage /storage
|
29 |
+
|
30 |
+
# Switch to user for AnythingLLM
|
31 |
USER anythingllm
|
32 |
|
33 |
+
# Set environment variables for storage and server port
|
34 |
ENV STORAGE_DIR="/data/storage"
|
35 |
ENV SERVER_PORT=7860
|
36 |
|
37 |
+
# Copy the custom script that handles copying storage data
|
38 |
COPY copy-storage.sh /usr/local/bin/copy-storage.sh
|
|
|
|
|
39 |
|
40 |
+
# Ensure the script has execution permissions
|
41 |
+
RUN chmod +x /usr/local/bin/copy-storage.sh
|
42 |
|
43 |
+
# Set the entry point to run the script and the main application
|
44 |
+
ENTRYPOINT ["/bin/bash", "/usr/local/bin/copy-storage.sh", "&&", "/bin/bash", "/usr/local/bin/render-entrypoint.sh"]
|