Spaces:
Sleeping
Sleeping
| # Base image | |
| FROM python:3.9-slim | |
| # Working directory set karna | |
| WORKDIR /code | |
| # Requirements file copy karna | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Dependencies install karna | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # App code copy karna | |
| COPY ./app.py /code/app.py | |
| # Port expose karna (Hugging Face ke liye 7860) | |
| EXPOSE 7860 | |
| # Gunicorn se app ko run karna | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |