From 84b43c144bb206b546100bd25261762d0fc93418 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sat, 19 Nov 2022 06:29:13 -0600 Subject: [PATCH] improvement: use locked cargo packages to build container images --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3637c06..36af742 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,13 @@ RUN USER=root cargo new --bin nostr-rs-relay WORKDIR ./nostr-rs-relay COPY ./Cargo.toml ./Cargo.toml COPY ./Cargo.lock ./Cargo.lock -RUN cargo build --release +RUN cargo build --release --locked RUN rm src/*.rs COPY ./src ./src RUN rm ./target/release/deps/nostr*relay* -RUN cargo build --release +RUN cargo build --release --locked FROM docker.io/library/debian:bullseye-20221024-slim@sha256:76cdda8fe5eb597ef5e712e4c9a9f5f1fb119e69f353daaa7bd6d0f6e66e541d