mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 19:28:00 +01:00
@@ -1,8 +1,10 @@
|
|||||||
ARG RUST_VERSION=1.75.0
|
ARG RUST_VERSION=1.90.0
|
||||||
FROM rust:${RUST_VERSION}-bookworm as builder
|
FROM rust:${RUST_VERSION}-slim-trixie AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN --mount=type=bind,source=src,target=src \
|
RUN --mount=type=bind,source=src,target=src \
|
||||||
|
--mount=type=bind,source=assets,target=assets \
|
||||||
|
--mount=type=bind,source=build.rs,target=build.rs \
|
||||||
--mount=type=bind,source=Cargo.toml,target=Cargo.toml \
|
--mount=type=bind,source=Cargo.toml,target=Cargo.toml \
|
||||||
--mount=type=bind,source=Cargo.lock,target=Cargo.lock \
|
--mount=type=bind,source=Cargo.lock,target=Cargo.lock \
|
||||||
--mount=type=cache,target=/app/target/ \
|
--mount=type=cache,target=/app/target/ \
|
||||||
@@ -13,6 +15,6 @@ cargo build --locked --release
|
|||||||
cp ./target/release/asciinema /usr/local/bin/
|
cp ./target/release/asciinema /usr/local/bin/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
FROM debian:bookworm-slim as run
|
FROM debian:trixie-slim AS run
|
||||||
COPY --from=builder /usr/local/bin/asciinema /usr/local/bin
|
COPY --from=builder /usr/local/bin/asciinema /usr/local/bin
|
||||||
ENTRYPOINT ["/usr/local/bin/asciinema"]
|
ENTRYPOINT ["/usr/local/bin/asciinema"]
|
||||||
|
|||||||
Reference in New Issue
Block a user