Files
dkl/Dockerfile

16 lines
482 B
Docker
Raw Normal View History

2026-03-16 11:20:48 +01:00
from mcluseau/rust:1.94.0 as build
2025-06-30 10:06:28 +02:00
workdir /app
copy . .
run \
--mount=type=cache,id=rust-alpine-registry,target=/usr/local/cargo/registry \
--mount=type=cache,id=rust-alpine-target,sharing=private,target=/app/target \
cargo build --release \
&& mkdir -p /dist \
&& find target/release -maxdepth 1 -type f -executable -exec cp -v {} /dist/ +
# ------------------------------------------------------------------------
2026-03-16 11:20:48 +01:00
from alpine:3.23
2025-06-30 10:06:28 +02:00
copy --from=build /dist/ /bin/