# Dockerfile FROM python:3.9-slim # Set the working directory WORKDIR /app # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY main.py fouras.py rhymes.py database.py ./ COPY resources/ ./resources/ # Create data directory for persistent state RUN mkdir -p /app/data && chmod 755 /app/data # Ensure Python output is not buffered (useful for logs) ENV PYTHONUNBUFFERED=1 # Set data directory as volume mount point VOLUME /app/data # Run the bot CMD ["python", "main.py"]