diff --git a/Dockerfile b/Dockerfile index b3283b2..be0eeb9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use the official Python image from the Docker Hub -FROM python:3.9-slim +FROM python:3.13-bookworm # Set the working directory in the container WORKDIR /app @@ -7,6 +7,9 @@ WORKDIR /app # Copy the requirements file into the container at /app COPY requirements.txt . +# Update apt, install libgl1, and clear apt cache +RUN apt update && apt install -y libgl1 && rm -rf /var/lib/apt/lists/* + # Install any dependencies specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt diff --git a/requirements.txt b/requirements.txt index 46a2624..575cd10 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ uvicorn torch torchvision ultralytics -opencv-python \ No newline at end of file +opencv-python +websockets \ No newline at end of file