Spaces:
Sleeping
Sleeping
[fix] update dockerfile
Browse files- Dockerfile +5 -0
- requirements.txt +0 -2
Dockerfile
CHANGED
|
@@ -10,6 +10,11 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
COPY --chown=user ./requirements.txt requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 14 |
|
| 15 |
COPY --chown=user . /app
|
|
|
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 13 |
+
|
| 14 |
+
# Needed for dependency errors of opencv
|
| 15 |
+
RUN pip install ultralytics
|
| 16 |
+
RUN pip install opencv-python-headless
|
| 17 |
+
|
| 18 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 19 |
|
| 20 |
COPY --chown=user . /app
|
requirements.txt
CHANGED
|
@@ -10,7 +10,5 @@ python-dotenv>=1.0.0
|
|
| 10 |
gradio>=4.0.0
|
| 11 |
requests>=2.31.0
|
| 12 |
librosa==0.10.2.post1
|
| 13 |
-
opencv-python-headless==4.8.1.78
|
| 14 |
-
ultralytics==8.3.59
|
| 15 |
torch==2.5.1
|
| 16 |
torchvision==0.20.1
|
|
|
|
| 10 |
gradio>=4.0.0
|
| 11 |
requests>=2.31.0
|
| 12 |
librosa==0.10.2.post1
|
|
|
|
|
|
|
| 13 |
torch==2.5.1
|
| 14 |
torchvision==0.20.1
|