jeyanthangj2004 commited on
Commit
e0f6328
·
verified ·
1 Parent(s): 9de15d9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -22
Dockerfile CHANGED
@@ -1,22 +1,25 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- # Install system dependencies for OpenCV and Git
6
- RUN apt-get update && apt-get install -y \
7
- libgl1 \
8
- libglib2.0-0 \
9
- git \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Copy files
13
- COPY requirements.txt .
14
- COPY app.py .
15
- COPY yolov8_mpeb.yaml .
16
- COPY yolov8_mpeb_modules.py .
17
-
18
- # Install Python dependencies
19
- RUN pip install --no-cache-dir -r requirements.txt
20
-
21
- # Run the training script
22
- CMD ["python", "app.py"]
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Ensure logs are printed immediately
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ WORKDIR /app
7
+
8
+ # Install system dependencies for OpenCV and Git
9
+ RUN apt-get update && apt-get install -y \
10
+ libgl1 \
11
+ libglib2.0-0 \
12
+ git \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Copy files
16
+ COPY requirements.txt .
17
+ COPY app.py .
18
+ COPY yolov8_mpeb.yaml .
19
+ COPY yolov8_mpeb_modules.py .
20
+
21
+ # Install Python dependencies
22
+ RUN pip install --no-cache-dir -r requirements.txt
23
+
24
+ # Run the training script
25
+ CMD ["python", "app.py"]