This repository has no description
0

Configure Feed

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

core / bobbin / containerfiles / bobbin.Containerfile
1.5 kB 39 lines
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" 6RUN rustup toolchain install 1.96.0 \ 7 --profile minimal \ 8 --component rustfmt \ 9 --component clippy \ 10 --target wasm32-unknown-unknown \ 11 --no-self-update 12ENV CC=clang 13ENV CXX=clang++ 14ARG BOBBIN_PROFILE=release 15WORKDIR /src 16COPY Cargo.toml Cargo.lock rust-toolchain.toml ./ 17COPY lexicons ./lexicons 18COPY crates/trusted-proxies ./crates/trusted-proxies 19COPY bobbin ./bobbin 20# keep image lighter by not copying in shittle, knot2 21# does however need some cargo toml patchings 22RUN sed -i \ 23 -e 's/, "shuttle"//' \ 24 -e 's/, "knot2\/crates\/\*"//' \ 25 -e '/^knot-[a-z0-9-]* = { path = "knot2\/crates\//d' \ 26 -e '/^gix-pack = { path = "knot2\/third_party\/gix-pack" }/d' \ 27 Cargo.toml 28RUN cargo build --profile ${BOBBIN_PROFILE} --bin bobbin --package bobbin 29RUN if [ "${BOBBIN_PROFILE}" = "release" ]; then strip target/${BOBBIN_PROFILE}/bobbin; fi 30 31FROM debian:trixie-slim 32ARG BOBBIN_PROFILE=release 33RUN apt-get update && apt-get install -y --no-install-recommends \ 34 ca-certificates \ 35 && rm -rf /var/lib/apt/lists/* 36COPY --from=builder /src/target/${BOBBIN_PROFILE}/bobbin /usr/local/bin/bobbin 37ENV BOBBIN_BIND=0.0.0.0:8090 38EXPOSE 8090 39ENTRYPOINT ["/usr/local/bin/bobbin"]