Skip to content

Commit

Permalink
Fix Dockerfile after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Apr 15, 2021
1 parent 228e5df commit 970d978
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

2 comments on commit 970d978

@lebensterben
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to publish lychee.

@mre
Copy link
Member Author

@mre mre commented on 970d978 Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done 👍

Please sign in to comment.