jeevzz commited on
Commit
de9c12c
·
verified ·
1 Parent(s): 7c1fc9b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -10,17 +10,19 @@ RUN apt-get update && apt-get install -y \
10
  # Install uv for faster package installation
11
  RUN pip install uv
12
 
13
- # Copy requirements from backend directory and install dependencies
14
- COPY backend/requirements.txt .
 
15
  RUN uv pip install --system -r requirements.txt
16
 
17
- # Copy all backend Python files to /app root
18
- COPY backend/main.py .
19
- COPY backend/agent.py .
20
- COPY backend/database.py .
 
21
 
22
  # Expose port 7860 (required by HF Spaces)
23
  EXPOSE 7860
24
 
25
- # Run the application - files are now at root level
26
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
10
  # Install uv for faster package installation
11
  RUN pip install uv
12
 
13
+ # Copy requirements and install dependencies
14
+ # Assumes requirements.txt is at the root of the repo
15
+ COPY requirements.txt .
16
  RUN uv pip install --system -r requirements.txt
17
 
18
+ # Copy application files
19
+ # Assumes these files are at the root of the repo
20
+ COPY main.py .
21
+ COPY agent.py .
22
+ COPY database.py .
23
 
24
  # Expose port 7860 (required by HF Spaces)
25
  EXPOSE 7860
26
 
27
+ # Run the application
28
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]