Skip to content

Commit

Permalink
chore(docker): just copy the needed files
Browse files Browse the repository at this point in the history
  • Loading branch information
0x61nas committed Feb 22, 2024
1 parent 213b6f3 commit 0207cff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
COPY Cargo.toml .
COPY Cargo.lock .
COPY src/ src/
RUN cargo build --release --locked \
&& rm -f target/release/deps/aarty*

Expand Down

0 comments on commit 0207cff

Please sign in to comment.