Fix dockerfile

This commit is contained in:
2024-03-01 13:04:40 +01:00
parent cc82841051
commit e8c1923a81
3 changed files with 10 additions and 4 deletions

View File

@@ -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"]