| # Use official Python image | |
| FROM python:3.9 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy project files | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Cache dir for transformers | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| RUN mkdir -p /app/cache && chmod 777 /app/cache | |
| # π« Ω ΩΩΨ΄ EXPOSE ΩΩΨ§ uvicorn | |
| # Run the script | |
| CMD ["python", "main.py"] | |