mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-03-18 21:40:38 +01:00
Fix dockerfile
This commit is contained in:
@@ -4,6 +4,7 @@ LABEL maintainer="BreizhHardware"
|
||||
|
||||
ADD ntfy.py /
|
||||
ADD requirements.txt /
|
||||
ADD entrypoint.sh /
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Définir les variables d'environnement pour username et password
|
||||
@@ -12,7 +13,4 @@ ENV USERNAME="" \
|
||||
NTFY_URL="" \
|
||||
GHNTFY_TIMEOUT="3600"
|
||||
|
||||
# Exécuter la commande pour générer l'authentification base64 à partir des variables d'environnement
|
||||
RUN echo -n "$USERNAME:$PASSWORD" | base64 > /auth.txt
|
||||
|
||||
CMD ["python", "./ntfy.py"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user