- Export no longer crashes the server on an unreadable photo (skips it) - Login limits per username as well as per client; X-Forwarded-For only trusted from local/private proxies; constant-time unknown-user path - Share links: internal fields always removed; values (incl. research notes) and notes/locations per link; filters, sort, search and CSV cannot reveal hidden fields; questions and stats details hidden - Password reset/change signs other browsers out - Comparables keep only http(s) links; CSV cells cannot start a formula - Phone sign-in redirect stays on this site; browser security headers - Items belong to accounts (not display names); unique display names - Uploads go to disk, retried uploads are stored once (app 1.4.1) - Daily database snapshots, expired-token cleanup, non-root container
17 lines
657 B
Docker
17 lines
657 B
Docker
FROM node:22-bookworm-slim AS deps
|
|
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /app/server
|
|
COPY server/package.json server/package-lock.json ./
|
|
RUN npm ci --omit=dev
|
|
|
|
FROM node:22-bookworm-slim
|
|
WORKDIR /app/server
|
|
COPY --from=deps /app/server/node_modules ./node_modules
|
|
COPY server/ ./
|
|
ENV NODE_ENV=production DATA_DIR=/data PORT=8080
|
|
VOLUME /data
|
|
EXPOSE 8080
|
|
HEALTHCHECK --interval=30s --timeout=5s CMD node -e "fetch('http://localhost:8080/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
|
CMD ["node", "src/index.js"]
|