docker update
This commit is contained in:
parent
18655a7031
commit
49fe026f16
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Use the official Python image from the Docker Hub
|
# 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
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -7,6 +7,9 @@ WORKDIR /app
|
||||||
# Copy the requirements file into the container at /app
|
# Copy the requirements file into the container at /app
|
||||||
COPY requirements.txt .
|
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
|
# Install any dependencies specified in requirements.txt
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
|
|
@ -3,4 +3,5 @@ uvicorn
|
||||||
torch
|
torch
|
||||||
torchvision
|
torchvision
|
||||||
ultralytics
|
ultralytics
|
||||||
opencv-python
|
opencv-python
|
||||||
|
websockets
|
Loading…
Add table
Add a link
Reference in a new issue