YOLOv8 / Dockerfile
ThongAccount
Adds the model files
a884613
raw
history blame contribute delete
420 Bytes
# Use a lightweight Python image
FROM python:3.10-slim
# Install system dependencies for OpenCV
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0
# Set working directory
WORKDIR /app
# Copy app files
COPY app/ ./app/
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port
EXPOSE 7860
# Command to run the app
CMD ["python", "app/main.py"]