ahadhassan commited on
Commit
cf53d6c
·
verified ·
1 Parent(s): 25abde1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -20,8 +20,15 @@ WORKDIR /app
20
 
21
  # Install Python packages
22
  COPY --chown=user ./requirements.txt requirements.txt
 
 
23
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
24
 
25
- # Copy all files
 
 
 
 
26
  COPY --chown=user . .
 
27
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
20
 
21
  # Install Python packages
22
  COPY --chown=user ./requirements.txt requirements.txt
23
+
24
+ # ⛔️ IMPORTANT: Make sure `ultralytics` is NOT listed in requirements.txt, or comment it out
25
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
26
 
27
+ # ⬇️ Install the local modified Ultralytics library in editable mode
28
+ COPY --chown=user ./ultralytics ./ultralytics
29
+ RUN pip install -e ./ultralytics
30
+
31
+ # Copy all other files
32
  COPY --chown=user . .
33
+
34
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]