We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228e5df commit 970d978Copy full SHA for 970d978
Dockerfile
@@ -3,12 +3,13 @@ FROM rust:latest as builder
3
RUN USER=root cargo new --bin lychee
4
WORKDIR /lychee
5
6
-# Just copy the Cargo.toml and trigger a build so
7
-# that we compile our dependencies only.
+# Just copy the Cargo.toml files and trigger
+# a build so that we compile our dependencies only.
8
# This way we avoid layer cache invalidation
9
# if our dependencies haven't changed,
10
# resulting in faster builds.
11
-COPY Cargo.toml Cargo.toml
+COPY lychee-bin/Cargo.toml lychee-bin/Cargo.toml
12
+COPY lychee-lib/Cargo.toml lychee-lib/Cargo.toml
13
RUN cargo build --release
14
RUN rm src/*.rs
15
0 commit comments