mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-01-18 16:37:28 +01:00
33 lines
795 B
Docker
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"]
|