Mieszko Makuch commited on
Commit
9fe7781
·
1 Parent(s): d6f9fe0

Fix Dockerfile: Remove user creation, use existing AnythingLLM user

Browse files

AnythingLLM Docker image already runs with UID 1000 which matches
Hugging Face Spaces requirements. Simplified Dockerfile to only set
environment variables without modifying user permissions.

Files changed (1) hide show
  1. Dockerfile +2 -14
Dockerfile CHANGED
@@ -1,24 +1,12 @@
1
  FROM mintplexlabs/anythingllm:latest
2
 
3
- # Create user with ID 1000 for Hugging Face Spaces
4
- RUN useradd -m -u 1000 user
5
-
6
  # Set environment variables for AnythingLLM
 
7
  ENV PORT=7860
8
  ENV SERVER_PORT=7860
9
- ENV STORAGE_DIR=/data
10
  ENV DISABLE_TELEMETRY=true
11
  ENV NO_DEBUG=true
12
 
13
- # Create data directory with proper permissions
14
- RUN mkdir -p /data && \
15
- chown -R user:user /data
16
-
17
- # Set working directory to user's home
18
- WORKDIR /home/user
19
-
20
- # Switch to user
21
- USER user
22
-
23
  # AnythingLLM already has its ENTRYPOINT/CMD configured
24
  # The base image will handle starting the application on the configured port
 
1
  FROM mintplexlabs/anythingllm:latest
2
 
 
 
 
3
  # Set environment variables for AnythingLLM
4
+ # AnythingLLM already runs with UID 1000 which matches Hugging Face Spaces requirements
5
  ENV PORT=7860
6
  ENV SERVER_PORT=7860
7
+ ENV STORAGE_DIR=/app/server/storage
8
  ENV DISABLE_TELEMETRY=true
9
  ENV NO_DEBUG=true
10
 
 
 
 
 
 
 
 
 
 
 
11
  # AnythingLLM already has its ENTRYPOINT/CMD configured
12
  # The base image will handle starting the application on the configured port