| FROM python:3.12-slim | |
| WORKDIR /app | |
| COPY . /app | |
| # Install build tools for tgcrypto | |
| RUN apt-get update && \ | |
| apt-get install -y gcc && \ | |
| pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt && \ | |
| apt-get remove -y gcc && \ | |
| apt-get autoremove -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Ensure modules directory exists and is writable | |
| RUN mkdir -p /app/modules && chmod 777 /app/modules | |
| RUN mkdir -p /app/sessions && chmod 777 /app/sessions | |
| CMD ["python", "jarvis.py"] |