Keep startup database rebuilds out of memory

This commit is contained in:
2026-10-06 15:18:13 -04:00
parent 8f8897b86b
commit 6999a33aef
12 changed files with 184 additions and 15 deletions
+2
View File
@@ -24,6 +24,7 @@ COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/src/lib/server/db/schema.sql ./build/schema.sql
COPY scripts/reset-admin.mjs ./scripts/reset-admin.mjs
COPY scripts/database-diagnostics.mjs ./scripts/database-diagnostics.mjs
COPY src/lib/server/auth/passwords.js ./src/lib/server/auth/passwords.js
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
@@ -32,6 +33,7 @@ ENV NODE_ENV=production
ENV PORT=3000
ENV HOST=0.0.0.0
ENV BODY_SIZE_LIMIT=Infinity
ENV SQLITE_TMPDIR=/data/.sqlite-tmp
EXPOSE 3000
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]