Milestone 5: canvas for access
The hub now serves a React canvas (web/, embedded at build time): grant by dragging a vault onto a person, revoke by pulling a ribbon until it snaps with an 8 s Undo the hub honours before anything reaches devices, invites (including vaults dropped on invitees), device rename and removal, Float/Dock, and panels with a button for every gesture. Sign-in without passwords (SPEC §8): `lunesync open` one-time link or a pairing code typed on the hub; 30-day HttpOnly session cookie plus an X-Lune header on every canvas request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,7 +1,15 @@
|
||||
# Lune hub: one container, data on /data.
|
||||
# Lune hub: one container, data on /data. The web canvas is built first and embedded in the binary.
|
||||
FROM node:22-bookworm-slim AS web
|
||||
WORKDIR /web
|
||||
COPY web/package.json web/package-lock.json ./
|
||||
RUN npm ci --no-audit --no-fund
|
||||
COPY web/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM rust:1.99-bookworm AS build
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
COPY --from=web /web/dist ./web/dist
|
||||
RUN cargo build --release -p lunehub
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
Reference in New Issue
Block a user