docker update

This commit is contained in:
Siwat Sirichai 2025-02-03 12:56:19 +07:00
parent 18655a7031
commit 49fe026f16
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -3,4 +3,5 @@ uvicorn
torch
torchvision
ultralytics
opencv-python
opencv-python
websockets