mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-08 07:20:59 +00:00
Fix Dockerfile after refactor
This commit is contained in:
parent
228e5df6a3
commit
970d978657
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue