siham47 commited on
Commit
eadd610
·
verified ·
1 Parent(s): 2810acd
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y \
7
  git \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Copy requirements first (for caching)
11
  COPY requirements.txt .
12
 
13
  # Install Python dependencies
@@ -15,12 +15,13 @@ RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  # Copy application code
17
  COPY api_server.py .
 
18
 
19
- # COPY DATA FILES - This is what was missing!
20
  COPY data_final/ ./data_final/
21
 
22
  # Expose port
23
  EXPOSE 7860
24
 
25
- # Start server (removed download_data.py since you uploaded manually)
26
- CMD uvicorn api_server:app --host 0.0.0.0 --port 7860
 
7
  git \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Copy requirements
11
  COPY requirements.txt .
12
 
13
  # Install Python dependencies
 
15
 
16
  # Copy application code
17
  COPY api_server.py .
18
+ COPY app.py .
19
 
20
+ # Copy data files
21
  COPY data_final/ ./data_final/
22
 
23
  # Expose port
24
  EXPOSE 7860
25
 
26
+ # Start Gradio app (which starts FastAPI internally)
27
+ CMD ["python", "app.py"]