From 49fe026f16be9caf9cb6b835f3889b4903fbe922 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Mon, 3 Feb 2025 12:56:19 +0700 Subject: [PATCH] docker update --- Dockerfile | 5 ++++- requirements.txt | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) 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