ning8429 commited on
Commit
bad88b0
·
verified ·
1 Parent(s): 4368b10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -9,9 +9,6 @@ RUN apt-get update && apt-get install -y \
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
@@ -38,3 +35,6 @@ ENV FLASK_APP=api_server.py
38
 
39
  # Run the Flask application
40
  CMD ["flask", "run", "--host=0.0.0.0"]
 
 
 
 
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
 
35
 
36
  # Run the Flask application
37
  CMD ["flask", "run", "--host=0.0.0.0"]
38
+
39
+ # 創建 YOLO_DIR 並賦予權限
40
+ RUN mkdir -p /path/to/YOLO_DIR && chown -R user:user /path/to/YOLO_DIR