| # Use Python base image | |
| FROM python:3.11-slim | |
| # Install dependencies | |
| RUN apt-get update && apt-get install -y build-essential git && \ | |
| pip install --upgrade pip && \ | |
| pip install aiohttp transformers scikit-learn psutil cryptography networkx vaderSentiment nltk | |
| # Copy Codette code | |
| WORKDIR /app | |
| COPY . . | |
| # Download NLTK data | |
| RUN python -m nltk.downloader punkt | |
| # Start application | |
| CMD ["python", "app.py"] |