Ezhil commited on
Commit
f7821f2
·
1 Parent(s): e0ec062

modified code

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -11,8 +11,11 @@ RUN pip install --no-cache-dir -r requirements.txt
11
  # Copy the rest of the application
12
  COPY . .
13
 
14
- # Expose the FastAPI app port
15
- EXPOSE 8000
 
16
 
 
 
17
  # Run the application with Uvicorn
18
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
11
  # Copy the rest of the application
12
  COPY . .
13
 
14
+ RUN useradd -m appuser
15
+ USER appuser
16
+
17
 
18
+ # Expose the FastAPI app port
19
+ EXPOSE 7860
20
  # Run the application with Uvicorn
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]