Gate shares behind magic-link sessions, add comments and new-photo email digests

This commit is contained in:
zyphlar
2026-10-19 15:10:57 -07:00
parent c8d8dc9dbc
commit f598200e24
34 changed files with 3387 additions and 375 deletions
+5 -1
View File
@@ -47,13 +47,17 @@ COPY --from=builder --chown=root:root /ipp/app/public ./public
COPY --from=builder --chown=root:root /ipp/app/config.json ./
# The code is root-owned and the app runs as node, so a compromised process
# cannot rewrite it; nothing writes to disk at runtime. The explicit --chown
# cannot rewrite it. The only runtime writes are the SQLite database of
# recipients, sessions and comments, in the /data volume. The explicit --chown
# is for buildah, which keeps the builder's owner on COPY --from.
RUN mkdir /data && chown node:node /data
VOLUME /data
USER node
ARG PACKAGE_VERSION
ENV APP_VERSION=${PACKAGE_VERSION}
ENV NODE_ENV=production
ENV DATA_DIR=/data
# tini as PID 1 reaps orphaned healthcheck processes, which node does not (GitHub #66).
# -s keeps reaping, without a warning, when PID 1 is already an init (compose `init: true`).