dschandra commited on
Commit
3e98a2b
·
verified ·
1 Parent(s): d954cdd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -19,16 +19,16 @@ RUN pip install --no-cache-dir --upgrade pip
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
 
 
 
 
22
  # Copy all application files
23
  COPY . .
24
 
25
  # Create directories for uploads, replays, and models
26
  RUN mkdir -p uploads replays models
27
 
28
- # Copy model and YAML (uncomment if included locally)
29
- # COPY models/yolov8_model.pt models/
30
- # COPY models/yolov8n.yaml models/
31
-
32
  # Set environment variables
33
  ENV PYTHONUNBUFFERED=1
34
 
@@ -36,4 +36,4 @@ ENV PYTHONUNBUFFERED=1
36
  EXPOSE 8000
37
 
38
  # Run the application
39
- CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "8000"]
 
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # Copy model files first to ensure they are included
23
+ COPY models/yolov8_model.pt models/
24
+ COPY models/yolov8n.yaml models/
25
+
26
  # Copy all application files
27
  COPY . .
28
 
29
  # Create directories for uploads, replays, and models
30
  RUN mkdir -p uploads replays models
31
 
 
 
 
 
32
  # Set environment variables
33
  ENV PYTHONUNBUFFERED=1
34
 
 
36
  EXPOSE 8000
37
 
38
  # Run the application
39
+ CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "8000"]