| # Use Python 3.10 for compatibility with motor/kymang | |
| FROM python:3.10-bullseye | |
| # Install system dependencies | |
| RUN apt-get update -y && apt-get upgrade -y \ | |
| && apt-get install -y --no-install-recommends ffmpeg neofetch git \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy application code | |
| COPY . /app/ | |
| # Make Git trust the repo | |
| RUN git config --global --add safe.directory /app \ | |
| && git config --global pull.rebase false | |
| # Ensure database directory exists (adjust path if needed) | |
| RUN mkdir -p /app/database && chmod -R 777 /app/database | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| CMD bash start | |