From 2c3688c9144502e11f43b3c2532cd71d82839ffb Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Sun, 15 Feb 2026 00:45:04 -0500 Subject: [PATCH] fix: Make Cargo.lock optional in Docker build Cargo.lock may not exist before first build. Use wildcard copy so Docker doesn't fail if lockfile is missing. Co-Authored-By: Claude Opus 4.6 --- docker/Dockerfile.api | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api index 5b40ca6..81fe5af 100644 --- a/docker/Dockerfile.api +++ b/docker/Dockerfile.api @@ -7,7 +7,8 @@ RUN apk add --no-cache musl-dev pkgconfig openssl-dev openssl-libs-static WORKDIR /build # Cache dependencies — copy manifests first -COPY Cargo.toml Cargo.lock ./ +COPY Cargo.toml ./ +COPY Cargo.lock* ./ RUN mkdir src && echo "fn main() {}" > src/main.rs RUN cargo build --release 2>/dev/null || true