Files
tools-legacy/Dockerfile
T
adebisi-fa d689434047 feat(cropper): move the Image Cropper into the tools app at /cropper
- Smart Photo Editor ported from id-image-bot: queue/by-ID picture
  loading, vue-croppa editing, carvekit background cleanup, nodered
  review flow, a2loft save — restyled to the tools design language
- unified login: YOUreka session identity, phone prefilled, OTP only at
  save (a2loft's requirement); artist-login step removed
- crop_image @ domain:idid OpenFGA gate on every cropper route: cached
  5-min on reads, live on save, fail closed
- credentials (minio/azure/nodered/carvekit) via env, sole exception to
  hardcoded config; 503 when unconfigured; native FormData replaces
  form-data; new deps minio + azure-storage
- 10 new tests (35 total) with fake minio/queue/nodered/removebg/a2loft
2026-10-01 01:13:30 +01:00

22 lines
785 B
Docker

# YOUreka Tools — landing page + /fingerprint enrollment wizard.
# Stateless: sessions live in the operator's cookie, and fpagent keeps running
# on the field laptop (the wizard reaches it at http://127.0.0.1:9000 from the
# browser, so the container location does not matter).
#
# docker build -t yreka-tools .
# docker run -d -p 4173:4173 --name yreka-tools yreka-tools
FROM node:22-alpine
WORKDIR /app
COPY tools/package.json tools/package-lock.json ./
RUN npm ci --omit=dev && npm cache clean --force
COPY tools/server.js tools/yrka-auth.js tools/permit.js tools/cropper.js ./
COPY tools/public ./public
USER node
EXPOSE 4173
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s \
CMD wget -qO- http://127.0.0.1:4173/ >/dev/null || exit 1
CMD ["node", "server.js"]