neuer cron
This commit is contained in:
@@ -1,13 +1,28 @@
|
||||
FROM docker.io/mailserver/docker-mailserver:latest
|
||||
|
||||
LABEL maintainer="andreas.knuth@bayarea-cc.com"
|
||||
LABEL description="Custom DMS with Python3 support"
|
||||
LABEL description="Custom DMS with Python3 support and Sieve Sync"
|
||||
|
||||
# Install Python and boto3
|
||||
# 1. Python, pip und dependencies installieren
|
||||
# croniter hinzufügen!
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
python3 \
|
||||
python3-pip \
|
||||
&& pip3 install --break-system-packages --no-cache-dir boto3 \
|
||||
&& pip3 install --break-system-packages --no-cache-dir boto3 croniter \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 2. Verzeichnis erstellen
|
||||
WORKDIR /scripts
|
||||
|
||||
# 3. Script kopieren
|
||||
COPY sync_dynamodb_to_sieve.py /scripts/sync.py
|
||||
RUN chmod +x /scripts/sync.py
|
||||
|
||||
# 4. Schedule Konfiguration kopieren (Der Cron-String)
|
||||
COPY sieve-schedule /etc/sieve-schedule
|
||||
|
||||
# 5. Supervisor Konfiguration kopieren
|
||||
# DMS scannt diesen Ordner beim Start
|
||||
COPY sieve-supervisor.conf /etc/supervisor/conf.d/sieve-sync.conf
|
||||
Reference in New Issue
Block a user