FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt RUN apt-get update \ && apt-get install -y --no-install-recommends \ tzdata \ rsync \ && rm -rf /var/lib/apt/lists/* COPY *.py ./ CMD ["python", "main.py"]