From 4351c74c7c5f97156bc94d3a8549b9940ac80e3f Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 2 Jul 2025 17:58:24 -0600 Subject: feat: implement cargo vendor and optimize Docker builds --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 744b4f3d..07f6f58a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM rust:alpine AS builder RUN apk add --no-cache musl-dev WORKDIR /app COPY . ./ -RUN cargo build --release --target x86_64-unknown-linux-musl +RUN cargo build --release --target x86_64-unknown-linux-musl --offline RUN strip /app/target/x86_64-unknown-linux-musl/release/authzd FROM gcr.io/distroless/static-debian12:nonroot -- cgit v1.2.3