# SPDX-FileCopyrightText: OpenTalk GmbH # # SPDX-License-Identifier: MIT OR Apache-2.0 FROM git.opentalk.dev:5050/opentalk/backend/containers/rust:1.79.0-bookworm AS builder WORKDIR /terdoc COPY ./Cargo.toml ./Cargo.toml COPY ./Cargo.lock ./Cargo.lock COPY src src COPY terdoc-client terdoc-client COPY terdoc-types terdoc-types RUN RUSTFLAGS=-Ctarget-feature=-crt-static cargo auditable build --release FROM debian:bookworm-slim RUN apt update && apt install -y texlive pandoc libreoffice COPY --from=builder /terdoc/target/release/terdoc /opt COPY examples/config.toml config.toml ENTRYPOINT [ "/opt/terdoc" ]