Monorepo for Tangled tangled.org
4

Configure Feed

Select the types of activity you want to include in your feed.

1FROM rust:1.96-slim-trixie AS builder 2RUN apt-get update && apt-get install -y --no-install-recommends \ 3 ca-certificates pkg-config perl make cmake clang mold \ 4 && rm -rf /var/lib/apt/lists/* 5ENV RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=mold" 6ARG BOBBIN_PROFILE=release 7WORKDIR /src 8COPY Cargo.toml Cargo.lock rust-toolchain.toml ./ 9COPY lexicons ./lexicons 10COPY bobbin ./bobbin 11RUN cargo build --profile ${BOBBIN_PROFILE} --bin bobbin --package bobbin 12RUN if [ "${BOBBIN_PROFILE}" = "release" ]; then strip target/${BOBBIN_PROFILE}/bobbin; fi 13 14FROM debian:trixie-slim 15ARG BOBBIN_PROFILE=release 16RUN apt-get update && apt-get install -y --no-install-recommends \ 17 ca-certificates \ 18 && rm -rf /var/lib/apt/lists/* 19COPY --from=builder /src/target/${BOBBIN_PROFILE}/bobbin /usr/local/bin/bobbin 20ENV BOBBIN_BIND=0.0.0.0:8090 21EXPOSE 8090 22ENTRYPOINT ["/usr/local/bin/bobbin"]