Files
tessera/Dockerfile
Adnan Zahir 95778d54e4 fix: harden the vault before release
Require a private passphrase and loopback-or-token admin auth. New vaults use Argon2id; existing PBKDF2 vaults still open, and new snapshot metadata is encrypted. Wormhole tokens survive restart, offset uploads seal into the vault, and client-certificate uploads are real. Reject the command provider and keep Postgres passwords off the process arguments. Keep the interruptible canvas motion.
2026-11-10 09:53:06 +07:00

23 lines
653 B
Docker

FROM node:22-bookworm AS web
WORKDIR /build
COPY web/package.json web/package-lock.json* ./
RUN npm ci
COPY web/ ./
RUN npm run build
FROM rust:1.88-bookworm AS rust
WORKDIR /build
COPY Cargo.toml Cargo.lock* ./
COPY crates ./crates
COPY --from=web /build/dist ./web/dist
RUN cargo build --release -p tessera-hub
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates postgresql-client && rm -rf /var/lib/apt/lists/*
COPY --from=rust /build/target/release/tessera-hub /usr/local/bin/
ENV TESSERA_LISTEN=0.0.0.0:8787
ENV TESSERA_DATA_DIR=/data
EXPOSE 8787
VOLUME ["/data"]
ENTRYPOINT ["tessera-hub"]