From 970d978657463ceb40b91c984a19bc6ab7330c56 Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Thu, 15 Apr 2021 02:36:01 +0200 Subject: [PATCH] Fix Dockerfile after refactor --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 06dd6a3..b80557d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,13 @@ FROM rust:latest as builder RUN USER=root cargo new --bin lychee WORKDIR /lychee -# Just copy the Cargo.toml and trigger a build so -# that we compile our dependencies only. +# Just copy the Cargo.toml files and trigger +# a build so that we compile our dependencies only. # This way we avoid layer cache invalidation # if our dependencies haven't changed, # resulting in faster builds. -COPY Cargo.toml Cargo.toml +COPY lychee-bin/Cargo.toml lychee-bin/Cargo.toml +COPY lychee-lib/Cargo.toml lychee-lib/Cargo.toml RUN cargo build --release RUN rm src/*.rs