siham47 commited on
Commit
7d53718
·
verified ·
1 Parent(s): 7f889a6

copy file added

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
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
11
  COPY requirements.txt .
12
 
13
  # Install Python dependencies
@@ -16,9 +16,11 @@ RUN pip install --no-cache-dir -r requirements.txt
16
  # Copy application code
17
  COPY api_server.py .
18
 
 
 
19
 
20
  # Expose port
21
  EXPOSE 7860
22
 
23
- # start server
24
  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 first (for caching)
11
  COPY requirements.txt .
12
 
13
  # Install Python dependencies
 
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