Keep legacy restores readable while using Restic for new captures, scoped Wormhole repositories, and chunk garbage collection.
27 lines
766 B
Docker
27 lines
766 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 restic/restic:0.19.1 AS restic
|
|
|
|
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/
|
|
COPY --from=restic /usr/bin/restic /usr/local/bin/restic
|
|
RUN restic version
|
|
ENV TESSERA_LISTEN=0.0.0.0:8787
|
|
ENV TESSERA_DATA_DIR=/data
|
|
EXPOSE 8787
|
|
VOLUME ["/data"]
|
|
ENTRYPOINT ["tessera-hub"]
|