Kaballas commited on
Commit
8bba362
·
1 Parent(s): 4941aed
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -2,24 +2,22 @@
2
  # you will also find guides on how best to write your Dockerfile
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"
25
 
 
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
  FROM python:3.9
 
 
5
 
6
  # Switch to root user to perform administrative tasks
7
  USER root
8
 
9
  # Create storage directory and link
10
+ RUN mkdir -p /data/storage \
11
+ && ln -s /data/storage /storage
12
 
13
+ # Create user and set permissions
14
+ RUN useradd -m -u 1000 user \
15
+ && chown -R user:user /data/storage
16
 
17
  # Set environment variables for storage and server port
18
  ENV STORAGE_DIR="/data/storage"
19
  ENV SERVER_PORT=7860
20
 
 
21
  USER user
22
  ENV PATH="/home/user/.local/bin:$PATH"
23