Files
ntfy_alerts/Dockerfile
Félix MARQUET e022b7ac2d Update Dockerfile
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-23 14:54:13 +02:00

33 lines
795 B
Docker

FROM alpine:3.22
# Copier le binaire
COPY github-ntfy /usr/local/bin/github-ntfy
# Installer les dépendances
RUN apk add --no-cache sqlite-libs openssl nginx nodejs npm && \
chmod +x /usr/local/bin/github-ntfy
WORKDIR /app
# Copier les fichiers web dans le répertoire attendu par nginx
COPY web-output/public /var/www/html/
COPY nginx.conf /etc/nginx/nginx.conf
# Copier le script d'entrée
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Créer le répertoire de données et définir les permissions
RUN mkdir -p /github-ntfy && chmod 755 /github-ntfy
# Variables d'environnement (optionnelles)
ENV DB_PATH=/github-ntfy
ENV RUST_LOG=info
# Volumes pour la persistance des données
VOLUME ["/github-ntfy"]
EXPOSE 5000 80
ENTRYPOINT ["/app/entrypoint.sh"]