mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-01-18 16:37:28 +01:00
26 lines
598 B
Docker
26 lines
598 B
Docker
FROM alpine:3.22
|
|
|
|
# Copier le binaire
|
|
COPY binaries/github-ntfy /usr/local/bin/github-ntfy
|
|
|
|
# Installer les dépendances
|
|
RUN apk add --no-cache sqlite-libs openssl nginx && \
|
|
chmod +x /usr/local/bin/github-ntfy
|
|
|
|
WORKDIR /app
|
|
|
|
# Copier les fichiers web dans le répertoire attendu par nginx
|
|
COPY web/* /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
|
|
RUN mkdir -p /github-ntfy && chmod 755 /github-ntfy
|
|
|
|
EXPOSE 5000 80
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|