| FROM python:3.9-slim |
|
|
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| ffmpeg \ |
| build-essential \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| COPY requirements.txt . |
|
|
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| RUN python -c "import nltk; nltk.download('stopwords'); nltk.download('punkt'); nltk.download('punkt_tab')" 2>/dev/null || true |
|
|
| |
| COPY . . |
|
|
| |
| RUN mkdir -p uploads/resumes uploads/audio |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| ENV FLASK_RUN_PORT=7860 |
| ENV FLASK_RUN_HOST=0.0.0.0 |
| ENV PYTHONUNBUFFERED=1 |
|
|
| |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--timeout", "120", "--workers", "2", "--threads", "4"] |
|
|