fix: CGO
Build and Publish Package (amd64) / docker (push) Successful in 6m28s

This commit is contained in:
2026-07-25 19:55:53 +02:00
parent 5fe3e345c7
commit dee1d94ae4
+2 -2
View File
@@ -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