add attribution for self host instance
build container / build (push) Failing after 6m9s

This commit is contained in:
2026-11-01 16:02:29 +01:00
parent 502d30365d
commit e2a5dd6d21
6 changed files with 102 additions and 8 deletions
+10
View File
@@ -48,6 +48,16 @@ RUN npm install --omit=dev --no-audit --no-fund \
COPY docker/patch-drm-check.js /tmp/patch-drm-check.js
RUN node /tmp/patch-drm-check.js /app/node/server.js
# Local patch: self-host attribution (docker/patch-attribution.js).
# The license requires a crawlable link back to https://adventure.land, and
# the original project should not appear to support this instance. The phrase
# ships as docker/attribution/{en.js,de.json}; other languages fall back to
# English. Kept after the npm install so dependency layers stay cached.
COPY --chown=node:node docker/attribution/en.js /app/languages/en/attribution.js
COPY --chown=node:node docker/attribution/de.json /app/languages/de/attribution.json
COPY docker/patch-attribution.js /tmp/patch-attribution.js
RUN node /tmp/patch-attribution.js /app/htmls/contents/account_help.html
FROM ${NODE_IMAGE} AS runtime