Kaballas commited on
Commit
4941aed
·
1 Parent(s): 4961190
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile CHANGED
@@ -3,6 +3,22 @@
3
 
4
  FROM python:3.9
5
  FROM mariadb:lts-ubi9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  RUN useradd -m -u 1000 user
7
  USER user
8
  ENV PATH="/home/user/.local/bin:$PATH"
 
3
 
4
  FROM python:3.9
5
  FROM mariadb:lts-ubi9
6
+
7
+
8
+ # Switch to root user to perform administrative tasks
9
+ USER root
10
+
11
+ # Create storage directory and link
12
+ RUN mkdir -p /data/storage && \
13
+ ln -s /data/storage /storage
14
+
15
+ # Change ownership of the storage directory to the anythingllm user
16
+ RUN chown -R anythingllm:anythingllm /data/storage
17
+
18
+ # Set environment variables for storage and server port
19
+ ENV STORAGE_DIR="/data/storage"
20
+ ENV SERVER_PORT=7860
21
+
22
  RUN useradd -m -u 1000 user
23
  USER user
24
  ENV PATH="/home/user/.local/bin:$PATH"