Spaces:
Sleeping
Sleeping
| # Dockerfile | |
| # 1. Use a more recent, but very stable, Python version | |
| FROM python:3.11-slim | |
| # 2. Set the working directory in the container | |
| WORKDIR /app | |
| # 3. Copy the requirements file into the container | |
| COPY requirements.txt . | |
| # 4. Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 5. Copy the rest of the application code into the container | |
| COPY . . | |
| # 6. Expose the port the app runs on | |
| # ... (ooper ka saara code waisa hi rahega) ... | |
| # NAYI LINE: Server start karne se pehle hamari model loading script chalao | |
| # ... (ooper ka saara code) ... | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--workers=2", "--threads=4", "--timeout=600", "--bind=0.0.0.0:7860", "app:app"] |