This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.22-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache git ca-certificates
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o mautrix-ntfy main.go
|
||||
|
||||
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"]
|
||||
Reference in New Issue
Block a user