All checks were successful
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>
13 lines
423 B
Text
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"]
|