# Glass by Unrivaled - branding overlay over upstream Postiz.
#
# Upstream: ghcr.io/gitroomhq/postiz-app v1.47.0, licensed AGPL-3.0.
# Pinned by digest so this fork is reproducible; bump the digest
# deliberately, re-run the build, and fix whatever anchors rebrand.py
# reports as missing. The overlay is user-facing branding only - no code
# symbols, imports, package names, or env keys are renamed, and the
# upstream LICENSE and copyright notices are left intact.
#
# AGPL-3.0 obligations this image inherits:
#   s.5  - a modified version must carry notice of modification (see
#          /app/GLASS_MODIFICATIONS.md)
#   s.13 - users interacting with this modified version over a network
#          must be offered its Corresponding Source.
FROM ghcr.io/gitroomhq/postiz-app@sha256:3ec7bc8ecf61f08c22e0954291702b097f944def515dc259cb3a441aba4046c0

COPY assets/ /glass-assets/
COPY rebrand.py /glass-rebrand.py
COPY GLASS_MODIFICATIONS.md /app/GLASS_MODIFICATIONS.md

# Fails the build if any anchor moved upstream - drift must be loud.
RUN python3 /glass-rebrand.py

# Rebuild the frontend so titles, logo and copy are compiled in.
RUN cd /app && pnpm --filter ./apps/frontend run build
