fix: use separate database connections for each function

- Refactored `send_discord.py` to better work with webhook (but remove the embed)
- Updated Dockerfile to adjust package installation order.
This commit is contained in:
2024-12-23 19:56:57 +01:00
parent e8eb8d18d2
commit a3e892c8f0
2 changed files with 49 additions and 56 deletions

View File

@@ -12,7 +12,7 @@ ADD send_gotify.py /
ADD send_discord.py /
ADD index.html /var/www/html/index.html
ADD script.js /var/www/html/script.js
RUN apk add --no-cache sqlite-dev sqlite-libs gcc musl-dev nginx
RUN apk add --no-cache sqlite-dev sqlite-libs musl-dev nginx gcc
RUN pip install -r requirements.txt
RUN chmod 700 /entrypoint.sh