From dee1d94ae428a029ba4f24dbd3dba772ba01e57c Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Sat, 25 Jul 2026 19:55:53 +0200 Subject: [PATCH] fix: CGO --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 94b8aa7..8803e33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM golang:1.26-alpine AS builder WORKDIR /app -RUN apk add --no-cache git ca-certificates +RUN apk add --no-cache git ca-certificates gcc musl-dev COPY go.mod go.sum ./ RUN go mod download COPY . . -RUN go build -ldflags="-w -s" -o mautrix-ntfy . +RUN CGO_ENABLED=1 go build -ldflags="-w -s" -o mautrix-ntfy . FROM alpine:latest