From eb5b7eb3463dbe115faa72c4b66338774c3b0e38 Mon Sep 17 00:00:00 2001 From: "Felipe M." Date: Mon, 21 Apr 2025 15:50:28 +0200 Subject: [PATCH] fix: containerfile missing ca-certs --- .goreleaser.yml | 4 ++-- Containerfile | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index c89e189..c46057f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -67,7 +67,7 @@ dockers: goarch: arm64 build_flag_templates: - "--pull" - - "--platform=linux/arm64" + - "--platform=linux/arm64/v8" - image_templates: - &armv7_image "git.nakama.town/fmartingr/butterrobot:{{ .Version }}-armv7" use: buildx @@ -93,7 +93,7 @@ docker_manifests: nfpms: - maintainer: Felipe Martin - description: SMTP server to forward messages to shoutrrr endpoints + description: A chatbot server with customizable commands and triggers homepage: https://git.nakama.town/fmartingr/butterrobot license: AGPL-3.0 formats: diff --git a/Containerfile b/Containerfile index 6a9ff7d..16fdfe1 100644 --- a/Containerfile +++ b/Containerfile @@ -1,6 +1,10 @@ # This file is used directly by the goreleaser build # It is used to build the final container image +FROM golang:alpine as build +RUN apk --no-cache --update add ca-certificates + FROM scratch WORKDIR / +COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY /butterrobot /usr/bin/butterrobot ENTRYPOINT ["/usr/bin/butterrobot"]