Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files2 unmodified lines34567891011122 unmodified lines151617181920212 unmodified lines# Set working directoryWORKDIR /code# Install system dependencies (for Pillow etc.)RUN apt-get update && apt-get install -y \build-essential \libgl1 \&& rm -rf /var/lib/apt/lists/*# Copy requirements first for caching2 unmodified lines# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txt# Copy app codeCOPY . .# Expose API port2 unmodified lines3456789101112131415162 unmodified lines192021222324252 unmodified lines# Set working directoryWORKDIR /code# Install system dependencies required by OpenCV and PillowRUN apt-get update && apt-get install -y \build-essential \libgl1 \libglib2.0-0 \libsm6 \libxext6 \libxrender-dev \&& rm -rf /var/lib/apt/lists/*# Copy requirements first for caching2 unmodified lines# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txt# Copy app code (including model file yolov8x.pt)COPY . .# Expose API port
Dockerfile+6-2