{{Your Name}} commited on
Commit
03d1853
·
1 Parent(s): c57f53c

Update README for YOLO FastAPI demo

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,13 +1,13 @@
1
- # Use the official Python image
 
2
  FROM python:3.12-slim
3
 
4
- # Install system dependencies needed for libraries like opencv-python and potential builds
5
  RUN apt-get update && apt-get install -y \
6
  libglib2.0-0 \
7
  libsm6 \
8
  libxext6 \
9
  libxrender1 \
10
- build-essential \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # Set the working directory
@@ -15,7 +15,7 @@ WORKDIR /app
15
 
16
  # Copy requirements.txt and install dependencies
17
  COPY requirements.txt .
18
- RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  # Copy the rest of the application code
21
  COPY . .
 
1
+ # Add a unique comment to force a rebuild
2
+ # CACHE BUSTER: 2025-09-17-01
3
  FROM python:3.12-slim
4
 
5
+ # Install system dependencies needed for libraries like opencv-python
6
  RUN apt-get update && apt-get install -y \
7
  libglib2.0-0 \
8
  libsm6 \
9
  libxext6 \
10
  libxrender1 \
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # Set the working directory
 
15
 
16
  # Copy requirements.txt and install dependencies
17
  COPY requirements.txt .
18
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
19
 
20
  # Copy the rest of the application code
21
  COPY . .