Spaces:
Sleeping
Sleeping
| # Python 3.9 image use kar rahe hain (Yeh sabse stable hai) | |
| FROM python:3.9 | |
| # Folder set kar rahe hain jahan code rakha jayega | |
| WORKDIR /code | |
| # Pehle requirements file copy karein | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Pip install chalayein (Libraries install karne ke liye) | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Ab baaki sara code (app.py) copy karein | |
| COPY . . | |
| # Permissions set karein taake Hugging Face error na de | |
| RUN chmod -R 777 /code | |
| # App start karne ka command | |
| CMD ["python", "app.py"] |