mominah commited on
Commit
b88668e
·
verified ·
1 Parent(s): 7629a5f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -2,7 +2,7 @@
2
  # Use an official lightweight Python image
3
  FROM python:3.11-slim
4
 
5
- # Ensure stdout/stderr are unbuffered
6
  ENV PYTHONUNBUFFERED=1
7
 
8
  # Set working directory
@@ -12,10 +12,6 @@ WORKDIR /app
12
  COPY requirements.txt ./
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Copy environment variables file
16
- # Make sure .env is in your .dockerignore if you don't want to commit it to source control
17
- COPY .env ./
18
-
19
  # Copy application code
20
  COPY . .
21
 
@@ -23,6 +19,10 @@ COPY . .
23
  EXPOSE 7860
24
 
25
  # Run the FastAPI app with Uvicorn
 
26
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
27
 
28
 
 
 
 
 
2
  # Use an official lightweight Python image
3
  FROM python:3.11-slim
4
 
5
+ # Ensure stdout/stderr are unbuffered for real-time logs
6
  ENV PYTHONUNBUFFERED=1
7
 
8
  # Set working directory
 
12
  COPY requirements.txt ./
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
 
 
 
15
  # Copy application code
16
  COPY . .
17
 
 
19
  EXPOSE 7860
20
 
21
  # Run the FastAPI app with Uvicorn
22
+ # The LLMINTROAPIKEY secret should be provided at runtime
23
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
24
 
25
 
26
+
27
+
28
+