Spaces:
Sleeping
Sleeping
IZERE HIRWA Roger
commited on
Commit
·
0ac79d5
1
Parent(s):
d41ddc1
- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -8,7 +8,9 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|
| 8 |
AM_I_DOCKER=True \
|
| 9 |
BUILD_WITH_CUDA=False \
|
| 10 |
# ↓ Hugging Face cache inside the container (optional)
|
| 11 |
-
HF_HOME=/opt/hf_cache
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# ––– OS packages –––
|
| 14 |
RUN apt-get update && \
|
|
@@ -21,6 +23,9 @@ WORKDIR /workspace
|
|
| 21 |
COPY requirements.txt ./requirements.txt
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
# Segment‑Anything & GroundingDINO in editable mode
|
| 25 |
RUN git clone --depth 1 https://github.com/facebookresearch/segment-anything.git && \
|
| 26 |
pip install -e segment-anything
|
|
|
|
| 8 |
AM_I_DOCKER=True \
|
| 9 |
BUILD_WITH_CUDA=False \
|
| 10 |
# ↓ Hugging Face cache inside the container (optional)
|
| 11 |
+
HF_HOME=/opt/hf_cache \
|
| 12 |
+
# Set MPLCONFIGDIR to a writable directory
|
| 13 |
+
MPLCONFIGDIR=/tmp/matplotlib-cache
|
| 14 |
|
| 15 |
# ––– OS packages –––
|
| 16 |
RUN apt-get update && \
|
|
|
|
| 23 |
COPY requirements.txt ./requirements.txt
|
| 24 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 25 |
|
| 26 |
+
# Ensure numpy and pycocotools compatibility
|
| 27 |
+
RUN pip install --no-cache-dir --force-reinstall numpy pycocotools
|
| 28 |
+
|
| 29 |
# Segment‑Anything & GroundingDINO in editable mode
|
| 30 |
RUN git clone --depth 1 https://github.com/facebookresearch/segment-anything.git && \
|
| 31 |
pip install -e segment-anything
|