# syntax=docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 FROM "python:3.11-alpine" AS pipdependencies COPY app/requirements.txt /requirements.txt RUN pip3 install --no-cache-dir --user --requirement requirements.txt FROM "python:3.11-alpine" LABEL maintainer="Cabillot Julien " # TODO: à tester #USER "nobody" COPY app /app COPY entrypoint.sh /app/entrypoint.sh WORKDIR "/app" ENTRYPOINT [ "/app/entrypoint.sh" ] COPY --from=binwiederhier/ntfy:v2.24.0@sha256:f8a9b104313b87cc24ae4f775f39e6328205b57dff6ede3eaf098a91e5d79f59 /usr/bin/ntfy /usr/local/bin/ntfy RUN mkdir /etc/ntfy COPY --from=pipdependencies /root/.local /root/.local