feat: move daemon to docker with daily schedule and deduplication
All checks were successful
Deployment / deploy-docker (push) Successful in 17s
All checks were successful
Deployment / deploy-docker (push) Successful in 17s
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
# Wir nutzen einfach ein kurzes Script oder lassen den Daemon in einem Loop laufen.
|
||||
# Da der User "täglich um 23h" möchte, bauen wir die Zeitsteuerung in den Daemon ein
|
||||
# ODER wir nutzen einen einfachen Sleep-Loop.
|
||||
|
||||
CMD ["python", "daemon.py"]
|
||||
Reference in New Issue
Block a user