From 1fae32299369a02de82a2b750feb52807b72c68d Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 29 Jun 2021 19:14:51 +0200 Subject: [PATCH] fix(docker): Start with lib project for caching --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 73fd61a..15b9da9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ekidd/rust-musl-builder:stable as builder # create new cargo project -RUN USER=rust cargo init --bin +RUN USER=rust cargo init --lib # copy build config COPY --chown=rust ./Cargo.lock ./Cargo.lock COPY ./Cargo.toml ./Cargo.toml