Skip to content

Commit 970d978

Browse files
committed
Fix Dockerfile after refactor
1 parent 228e5df commit 970d978

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ FROM rust:latest as builder
33
RUN USER=root cargo new --bin lychee
44
WORKDIR /lychee
55

6-
# Just copy the Cargo.toml and trigger a build so
7-
# that we compile our dependencies only.
6+
# Just copy the Cargo.toml files and trigger
7+
# a build so that we compile our dependencies only.
88
# This way we avoid layer cache invalidation
99
# if our dependencies haven't changed,
1010
# resulting in faster builds.
11-
COPY Cargo.toml Cargo.toml
11+
COPY lychee-bin/Cargo.toml lychee-bin/Cargo.toml
12+
COPY lychee-lib/Cargo.toml lychee-lib/Cargo.toml
1213
RUN cargo build --release
1314
RUN rm src/*.rs
1415

0 commit comments

Comments
 (0)