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>
25 lines
873 B
Docker
25 lines
873 B
Docker
# 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
|
|
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/* \
|
|
&& useradd --system --uid 1000 --home /data lune && mkdir /data && chown lune /data
|
|
COPY --from=build /src/target/release/lunehub /usr/local/bin/lunehub
|
|
USER lune
|
|
ENV LUNE_HUB_DATA=/data LUNE_HUB_LISTEN=0.0.0.0:8080
|
|
VOLUME /data
|
|
EXPOSE 8080
|
|
HEALTHCHECK --interval=30s --start-period=5s CMD ["lunehub", "health"]
|
|
CMD ["lunehub", "serve"]
|