2023-02-21 17:18:42 -05:00
|
|
|
# syntax=docker.io/docker/dockerfile:1
|
2023-02-21 16:19:04 -05:00
|
|
|
|
|
|
|
|
FROM "python:3.11-alpine" AS pipdependencies
|
|
|
|
|
|
|
|
|
|
COPY app/requirements.txt /requirements.txt
|
|
|
|
|
|
|
|
|
|
RUN pip3 install --no-cache-dir --user --requirement requirements.txt
|
|
|
|
|
|
2023-02-21 14:22:54 -05:00
|
|
|
FROM "python:3.11-alpine"
|
2019-08-06 11:24:49 -04:00
|
|
|
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
|
|
|
|
|
|
2023-02-21 16:19:04 -05:00
|
|
|
# TODO: à tester
|
|
|
|
|
#USER "nobody"
|
|
|
|
|
|
2019-08-06 11:24:49 -04:00
|
|
|
COPY app /app
|
2019-08-06 11:42:51 -04:00
|
|
|
COPY entrypoint.sh /app/entrypoint.sh
|
2019-08-06 11:24:49 -04:00
|
|
|
|
|
|
|
|
WORKDIR "/app"
|
|
|
|
|
|
2023-02-21 16:19:04 -05:00
|
|
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
2019-08-06 11:24:49 -04:00
|
|
|
|
2023-02-21 17:18:42 -05:00
|
|
|
COPY --from=binwiederhier/ntfy:v2.0.1 /usr/bin/ntfy /usr/local/bin/ntfy
|
2023-02-21 16:19:04 -05:00
|
|
|
RUN mkdir /etc/ntfy
|
2019-08-06 11:24:49 -04:00
|
|
|
|
2023-02-21 16:19:04 -05:00
|
|
|
COPY --from=pipdependencies /root/.local /root/.local
|