From 1fe39fbd3cd6603f6d4227288bd4c0f01f11e916 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 29 Jun 2021 19:23:34 +0200 Subject: [PATCH] fix(docker): Start with lib project for caching --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 15b9da9..b6a2f09 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM ekidd/rust-musl-builder:stable as builder # create new cargo project RUN USER=rust cargo init --lib +RUN echo 'fn main() { println!("Hello, world!"); }' >> src/main.rs # copy build config COPY --chown=rust ./Cargo.lock ./Cargo.lock COPY ./Cargo.toml ./Cargo.toml