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>
26 lines
892 B
Docker
26 lines
892 B
Docker
# Build dependencies on native arch (no QEMU needed)
|
|
FROM --platform=$BUILDPLATFORM alpine:3.24 AS base
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
RUN addgroup -g 1000 app && adduser -D -u 1000 -G app app
|
|
RUN mkdir /app && chown app:app /app
|
|
|
|
# Runtime image
|
|
FROM scratch
|
|
ARG TARGETPLATFORM
|
|
LABEL maintainer="Felipe Martin <me@fmartingr.com>"
|
|
LABEL org.opencontainers.image.source="https://git.nakama.town/fmartingr/mattermost-push-proxy-router"
|
|
|
|
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo
|
|
COPY --from=base /etc/passwd /etc/passwd
|
|
COPY --from=base /etc/group /etc/group
|
|
COPY --from=base /app /app
|
|
COPY $TARGETPLATFORM/mattermost-push-proxy-router /usr/local/bin/mattermost-push-proxy-router
|
|
|
|
WORKDIR /app
|
|
|
|
USER app
|
|
|
|
EXPOSE 8066
|
|
|
|
ENTRYPOINT ["/usr/local/bin/mattermost-push-proxy-router"]
|