From 495a3c0b4e29a773651303db86c1acc29692ce09 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 20 Oct 2024 23:04:45 -0400 Subject: [PATCH] Use linked copy. --- docker/natter/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/natter/Dockerfile b/docker/natter/Dockerfile index 01a8048..7c041fc 100644 --- a/docker/natter/Dockerfile +++ b/docker/natter/Dockerfile @@ -7,10 +7,10 @@ RUN apk add --no-cache musl-dev RUN mkdir /root/natter WORKDIR /root/natter -COPY . . +COPY --link . . # TODO: Add static build, which currently errors due to proc_macro. RUSTFLAGS="-C target-feature=+crt-static" RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked CARGO_TARGET_DIR=/target cargo build --profile release-lto FROM alpine:$ALPINE_VERSION AS runner -COPY --from=builder /target/release-lto/natter /usr/bin/ +COPY --link --from=builder /target/release-lto/natter /usr/bin/