FROM debian:bookworm-slim # Install imapsync and dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ imapsync \ python3 \ python3-pip \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY worker.py . RUN mkdir -p /data/logs CMD ["python3", "-u", "worker.py"]