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