Gate shares behind magic-link sessions, add comments and new-photo email digests
This commit is contained in:
+5
-1
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user