Spaces:
Sleeping
Sleeping
File size: 722 Bytes
b422a14 5308261 e90f95e b422a14 5308261 e90f95e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 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"] |