From bd99bc513aa3a1cb50816754b93a03e5595d0992 Mon Sep 17 00:00:00 2001 From: Matt Schmitz Date: Fri, 29 Mar 2024 15:36:16 -0400 Subject: [PATCH 1/2] Added multistage docker build --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3be95a1..d39a4ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:bookworm +FROM golang:1.22-alpine as build WORKDIR /app @@ -9,6 +9,12 @@ RUN go mod download COPY . /app/ -RUN go build -o /app/frigate-notify . +RUN go build -o /frigate-notify . + +FROM scratch + +WORKDIR /app + +COPY --from=build /frigate-notify /app/frigate-notify ENTRYPOINT [ "/app/frigate-notify" ] \ No newline at end of file From c1d43d467dce9f90aaf0843aef2c99c44ce1c7f0 Mon Sep 17 00:00:00 2001 From: Matt Schmitz Date: Fri, 29 Mar 2024 15:40:06 -0400 Subject: [PATCH 2/2] Update Changelog --- docs/changelog.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 2e3f4c6..93ffe53 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,8 +1,9 @@ # Changelog -## [v0.2.5](https://github.com/0x2142/frigate-notify/releases/tag/v0.2.5) - TBD +## [v0.2.5](https://github.com/0x2142/frigate-notify/releases/tag/v0.2.5) - Mar 29 2024 - Added support for alerts via [Pushover](https://frigate-notify.0x2142.com/config/#pushover) + - Reduced container image from ~1Gb to ~11Mb ## [v0.2.4](https://github.com/0x2142/frigate-notify/releases/tag/v0.2.4) - Mar 28 2024