FROM ghcr.io/astral-sh/uv:python3.11-trixie-slim RUN apt-get update && apt-get install -y \ git curl build-essential libgl1 libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* ENV DEVICE=cpu WORKDIR /app COPY . . RUN uv pip install --system --no-cache-dir \ torch==2.8.0 torchvision==0.23.0 \ --index-url https://download.pytorch.org/whl/cpu RUN uv pip install --system --no-cache-dir -r requirements.txt # हगिंग फेस के मानक नियमों के अनुसार पोर्ट 7860 को एक्सपोज़ करना EXPOSE 7860 ENV GRADIO_SERVER_NAME="0.0.0.0" # बिना किसी खराबी के सीधे FastAPI वेब एपीआई सर्वर को पोर्ट 7860 पर शुरू करने की सटीक कमांड CMD ["python", "src/app.py", "--api", "--port", "7860"]