Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -9,6 +9,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
libgl1-mesa-glx \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Copy the requirements.txt file and install the Python dependencies
|
| 13 |
COPY requirements.txt .
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 9 |
libgl1-mesa-glx \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# 創建 YOLO_DIR 並賦予權限
|
| 13 |
+
RUN mkdir -p /path/to/YOLO_DIR && chown -R user:user /path/to/YOLO_DIR
|
| 14 |
+
|
| 15 |
# Copy the requirements.txt file and install the Python dependencies
|
| 16 |
COPY requirements.txt .
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|