# Official Hugging Face recommended base for Python FROM python:3.10-slim # Dev Mode support ke liye (recommended by HF) RUN useradd -m -u 1000 user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ PYTHONUNBUFFERED=1 WORKDIR /code # Dependencies install karo COPY requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # Apna code copy karo COPY . /code # Expose port (Hugging Face ke liye 7860 best hai) EXPOSE 7860 # Run command - Gradio app ko launch karo CMD ["python", "app.py"]