From db342ff0b59ef3e2bb073a9d80e9b717e129e442 Mon Sep 17 00:00:00 2001 From: Ashish D'Souza Date: Sun, 29 Oct 2023 19:39:22 -0500 Subject: [PATCH] Created docker_entrypoint.sh #3 --- notify/Dockerfile | 5 ++--- notify/docker_entrypoint.sh | 6 ++++++ start.yaml | 6 ------ 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100755 notify/docker_entrypoint.sh diff --git a/notify/Dockerfile b/notify/Dockerfile index ea2a68c..9ac3098 100644 --- a/notify/Dockerfile +++ b/notify/Dockerfile @@ -1,9 +1,8 @@ FROM python:3.11 WORKDIR /code -ENTRYPOINT ["python3", "frigate_event_notifier.py"] - -RUN pip3 install --upgrade pip +COPY docker_entrypoint.sh / +ENTRYPOINT ["/docker_entrypoint.sh"] COPY requirements.txt . RUN pip3 install -r requirements.txt diff --git a/notify/docker_entrypoint.sh b/notify/docker_entrypoint.sh new file mode 100755 index 0000000..9015963 --- /dev/null +++ b/notify/docker_entrypoint.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e + +update-ca-certificates + +python3 frigate_event_notifier.py "$@" diff --git a/start.yaml b/start.yaml index 28b97e2..9d5022c 100644 --- a/start.yaml +++ b/start.yaml @@ -52,9 +52,3 @@ ansible.builtin.file: path: '{{docker_compose_dir.path}}' state: absent - - - name: Update CA certificates - community.docker.docker_container_exec: - container: frigate-notify - command: update-ca-certificates - user: root