Files
jzitnik dee1d94ae4
Build and Publish Package (amd64) / docker (push) Successful in 6m28s
fix: CGO
2026-07-25 19:55:53 +02:00

21 lines
471 B
Docker

FROM golang:1.26-alpine AS builder
WORKDIR /app
RUN apk add --no-cache git ca-certificates gcc musl-dev
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 go build -ldflags="-w -s" -o mautrix-ntfy .
FROM alpine:latest
RUN apk add --no-cache ca-certificates tzdata
WORKDIR /data
COPY --from=builder /app/mautrix-ntfy /usr/local/bin/mautrix-ntfy
ENTRYPOINT ["mautrix-ntfy"]
CMD ["-config", "/data/config.yaml", "-database", "/data/ntfy-bridge.db"]