change core library to libilibili
This commit is contained in:
+5
-6
@@ -6,10 +6,12 @@ COPY apps/overlay ./
|
||||
RUN npm run build
|
||||
|
||||
FROM rust:1.97-bookworm AS rust-build
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev libasound2-dev && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app
|
||||
COPY apps/server-rust/Cargo.toml apps/server-rust/Cargo.lock ./apps/server-rust/
|
||||
COPY vendor/blivedm ./vendor/blivedm
|
||||
# `libilibili` is a sibling checkout in local development. Compose exposes it
|
||||
# as a named build context so the image always compiles the same local source
|
||||
# without copying a second, drifting crate into this repository.
|
||||
COPY --from=libilibili . /libilibili
|
||||
COPY apps/server-rust/src ./apps/server-rust/src
|
||||
COPY apps/server-rust/migrations ./apps/server-rust/migrations
|
||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||
@@ -18,11 +20,8 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||
cp /app/target-cache/release/lxc-stream-server /app/lxc-stream-server
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl libasound2 libssl3 && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app
|
||||
# The upstream client logs full upstream HTTP responses at INFO, which can include
|
||||
# account metadata and short-lived connection tokens. Keep application lifecycle
|
||||
# logs while suppressing dependency INFO output by default.
|
||||
COPY --from=rust-build /app/lxc-stream-server /app/lxc-stream-server
|
||||
COPY --from=web-build /app/apps/overlay/dist /app/web
|
||||
EXPOSE 9719
|
||||
|
||||
Reference in New Issue
Block a user