# Use official Python 3.10 slim image FROM python:3.10-slim # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ libsqlite3-dev \ && rm -rf /var/lib/apt/lists/* # Copy and install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY .env.example ./ COPY main.py ./ # Set container permissions RUN chmod +x main.py # Command to run the application ENTRYPOINT ["python", "main.py"]