Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
676 B · 17 lines
at sl/md-editor
123456789101112131415161718FROM docker.io/library/rust:1-alpine3.23 AS builderRUN apk add --no-cache build-base musl-dev cmake perl pkgconfigARG BOBBIN_PROFILE=releaseWORKDIR /srcCOPY Cargo.toml Cargo.lock rust-toolchain.toml ./COPY lexicons ./lexiconsCOPY bobbin ./bobbinRUN cargo build --profile ${BOBBIN_PROFILE} --bin bobbin --package bobbinRUN if [ "${BOBBIN_PROFILE}" = "release" ]; then strip target/${BOBBIN_PROFILE}/bobbin; fiFROM docker.io/library/alpine:3.23ARG BOBBIN_PROFILE=releaseRUN apk add --no-cache ca-certificatesCOPY --from=builder /src/target/${BOBBIN_PROFILE}/bobbin /usr/local/bin/bobbinENV BOBBIN_BIND=0.0.0.0:8090EXPOSE 8090ENTRYPOINT ["/usr/local/bin/bobbin"]