feat(editor): bridge the advanced photo editor into the event workflow
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
Event photos can now be opened in Lumenroom, a WebGL2 develop module, from the photo editor's Advanced button. The dashboard signs a short-lived token scoped to one user and event; Lumenroom exchanges it, imports the event's photo list and proxies bytes on demand, so nothing is copied and the temporary catalog expires with the bridge session. Saving in Lumenroom renders the photo and writes it back as the event's edited JPEG, with the advanced recipe kept in event_photos.advanced_edit_json. Lumenroom is vendored under lumenroom/ and built as a second compose service, so one clone and `docker compose up -d --build` deploys both apps. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# ---------------------------------------------------------------- dependencies
|
||||
FROM node:24-bookworm-slim AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
# ---------------------------------------------------------------------- build
|
||||
FROM deps AS build
|
||||
WORKDIR /app
|
||||
COPY tsconfig.json vite.config.ts index.html ./
|
||||
COPY src ./src
|
||||
# Vite copies public/ into dist/, so the served PDF (in-app Guide link) needs it here.
|
||||
COPY public ./public
|
||||
RUN npm run build
|
||||
|
||||
# ------------------------------------------------------- production node_modules
|
||||
FROM node:24-bookworm-slim AS prod-deps
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev && npm cache clean --force
|
||||
|
||||
# -------------------------------------------------------------------- runtime
|
||||
FROM node:24-bookworm-slim AS runtime
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production \
|
||||
PORT=8787 \
|
||||
HOST=0.0.0.0 \
|
||||
LUMENROOM_DATA=/data
|
||||
|
||||
COPY --from=prod-deps /app/node_modules ./node_modules
|
||||
COPY package.json ./
|
||||
COPY server ./server
|
||||
COPY --from=build /app/dist ./dist
|
||||
|
||||
# Fail the build, not the first request, if the guide or the UI is missing.
|
||||
RUN test -f dist/index.html && test -f dist/lumenroom-user-guide.pdf
|
||||
|
||||
# The catalog lives on a volume; it must be writable by the unprivileged user.
|
||||
RUN mkdir -p /data && chown -R node:node /data /app
|
||||
USER node
|
||||
|
||||
EXPOSE 8787
|
||||
VOLUME ["/data"]
|
||||
|
||||
# node is guaranteed present, so no curl/wget needed in the image.
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
|
||||
CMD node -e "fetch('http://127.0.0.1:'+(process.env.PORT||8787)+'/api/health').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
|
||||
|
||||
CMD ["node", "server/index.mjs"]
|
||||
Reference in New Issue
Block a user