priaansh commited on
Commit
91dd156
·
verified ·
1 Parent(s): 7411179

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM stephengpope/no-code-architects-toolkit:latest
2
+
3
+ # Set up user for Hugging Face Spaces compatibility
4
+ RUN useradd -m -u 1000 user
5
+ USER user
6
+
7
+ ENV HOME=/home/user \
8
+ PATH=/home/user/.local/bin:$PATH
9
+
10
+ WORKDIR $HOME/app
11
+
12
+ # Create data directory for persistence if using Hugging Face Spaces persistent storage
13
+ RUN mkdir -p /data
14
+
15
+ # Default environment variables
16
+ ENV API_KEY=your_api_key \
17
+ LOCAL_STORAGE_PATH=/data \
18
+ MAX_QUEUE_LENGTH=10 \
19
+ GUNICORN_WORKERS=4 \
20
+ GUNICORN_TIMEOUT=300
21
+
22
+ # Expose the port that the API will run on
23
+ EXPOSE 8080
24
+
25
+ # The container will start automatically with the CMD from the base image