Files
dkl/Dockerfile
T

16 lines
484 B
Docker
Raw Normal View History

2026-04-22 15:51:05 +02:00
from mcluseau/rust:1.95.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-04-22 15:51:05 +02:00
from alpine:3.23.4
2025-06-30 10:06:28 +02:00
copy --from=build /dist/ /bin/