FROM python:3.12-slim # Set the working directory WORKDIR /app # Copy project files COPY . /app # Install required packages RUN apt-get update && \ apt-get install -y --no-install-recommends python3-dotenv && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Run the application CMD ["python", "main.py"]