Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files123456789101112FROM python:3.10-slimWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY . .EXPOSE 7860CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]123456789101112131415161718192021222324FROM python:3.10-slim# Install system dependencies for OpenCVRUN apt-get update && apt-get install -y \git \wget \libgl1 \libglib2.0-0 \&& rm -rf /var/lib/apt/lists/*WORKDIR /app# Copy and install Python dependenciesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy app filesCOPY . .# Expose port for Hugging Face SpacesEXPOSE 7860# Start FastAPI with UvicornCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
Dockerfile+12