ashishbangwal commited on
Commit
18bce90
·
1 Parent(s): 0aca7c2

env issue resolved, updated Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -1
  2. utils/.env +0 -4
Dockerfile CHANGED
@@ -10,6 +10,12 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
 
 
 
 
 
13
 
14
  # Start the FastAPI app on port 7860, the default port expected by Spaces
15
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Create a non-root user
14
+ RUN useradd -m appuser
15
+
16
+ # Create necessary directories and set permissions
17
+ RUN chown -R appuser:appuser /app && \
18
+ chmod -R 755 /app
19
 
20
  # Start the FastAPI app on port 7860, the default port expected by Spaces
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
utils/.env DELETED
@@ -1,4 +0,0 @@
1
- TOGETHER_API="85e577a7bd21434e2d3f1ab2bd7a2750c6db5eb7ddf09cce131655911c93f622"
2
- GEMINI_API="AIzaSyAVUENQ7n8IkQbef0D5uApIo1VVQrSKN9Y"
3
- OPENROUTER_API_KEY="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"
4
- X_API_KEY="44d5c2ac18ced6fc25c1e57dcd06fc0b31fb4ad97bf56e67540671a647465df4"