Spaces:
Sleeping
Sleeping
File size: 540 Bytes
022d670 c3dfe70 022d670 c3dfe70 022d670 c3dfe70 022d670 c3dfe70 022d670 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.11-slim
# Force logs to show up in Hugging Face console
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Install basic build tools
RUN apt-get update && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/*
# Install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy the app
COPY . .
# Run the app
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "8", "--timeout", "0", "app:app"] |