FROM python:3.11-bookworm as base WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt FROM base as app COPY . . CMD ["python", "main.py"]