Update Dockerfile
Browse files- 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 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
26 |
# Set environment variables for storage and server port
|
27 |
ENV STORAGE_DIR="/data/storage"
|
28 |
ENV SERVER_PORT=7860
|
|
|
|
|
29 |
USER anythingllm
|
30 |
-
|
|
|
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 |
+
|