mattermost-push-proxy-router/Containerfile.dev
Felipe M. 3c6fea8a46
All checks were successful
Release / release (push) Successful in 2m26s
CI / goreleaser-lint (push) Successful in 6s
CI / format (push) Successful in 28s
CI / test (push) Successful in 1m20s
CI / lint (push) Successful in 2m36s
CI / build (push) Successful in 34s
feat: add Mattermost push proxy prefix router
Implement a stateless Go service that routes /api/v1/send_push and /api/v1/ack
by platform prefix to configured backends, enabling mixed official and custom
mobile clients on a single PushNotificationServer URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 10:03:43 +02:00

13 lines
423 B
Text

FROM golang:1.26-alpine AS build
WORKDIR /src
COPY go.mod ./
COPY *.go ./
RUN CGO_ENABLED=0 go build -o /mattermost-push-proxy-router .
FROM alpine:3.24
RUN apk add --no-cache ca-certificates
RUN addgroup -g 1000 app && adduser -D -u 1000 -G app app
COPY --from=build /mattermost-push-proxy-router /usr/local/bin/mattermost-push-proxy-router
USER app
EXPOSE 8066
ENTRYPOINT ["/usr/local/bin/mattermost-push-proxy-router"]