FROM "python:3.11-alpine" LABEL maintainer="Cabillot Julien " COPY app /app COPY entrypoint.sh /app/entrypoint.sh WORKDIR "/app" # ntfy est pas encore dispo en dehors de testing sur alpine actuellement RUN pip install --no-cache-dir --requirement requirements.txt && \ wget https://github.com/binwiederhier/ntfy/releases/download/v2.0.1/ntfy_2.0.1_linux_armv7.tar.gz && \ tar zxvf ntfy_2.0.1_linux_armv7.tar.gz && \ cp -a ntfy_2.0.1_linux_armv7/ntfy /usr/local/bin && \ mkdir /etc/ntfy && \ rm -rf ntfy_2.0.1* && \ ntfy --help #USER "nobody" ENTRYPOINT [ "/app/entrypoint.sh" ]