priaansh commited on
Commit
a88b788
·
verified ·
1 Parent(s): 6938fed

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM stephengpope/no-code-architects-toolkit:latest
2
 
3
- # Set defaults (these are overridden by HF secret env vars at runtime)
4
  ENV API_KEY=default_key \
5
  S3_ENDPOINT_URL=https://s3.ap-south-1.amazonaws.com \
6
  S3_ACCESS_KEY=default_access_key \
@@ -15,8 +15,9 @@ WORKDIR /app
15
 
16
  COPY . .
17
 
18
- # Expose the correct port
 
 
19
  EXPOSE 8080
20
 
21
- # Ensure that the app runs with the correct environment variables
22
- CMD ["python", "app.py"]
 
1
  FROM stephengpope/no-code-architects-toolkit:latest
2
 
3
+ # Default values (overridden by Hugging Face secrets at runtime)
4
  ENV API_KEY=default_key \
5
  S3_ENDPOINT_URL=https://s3.ap-south-1.amazonaws.com \
6
  S3_ACCESS_KEY=default_access_key \
 
15
 
16
  COPY . .
17
 
18
+ # Optional: If you have extra Python packages to install
19
+ # RUN pip install -r requirements.txt
20
+
21
  EXPOSE 8080
22
 
23
+ CMD ["gunicorn", "main:app", "--workers=4", "--timeout=300", "--bind=0.0.0.0:8080"]