Skip to content

Commit

Permalink
Merge branch 'aurora' into renovate/lukemathwalker-cargo-chef-0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Mar 1, 2024
2 parents 83365bb + fb2e554 commit d5646a5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Directories
/.git/
/.github/
/samples/
/benches/

# Files
.gitignore
*.md
LICENSE-*
committed.toml
cliff.toml
deny.toml
CNAME
rustfmt.toml
_config.yml
codecov.yml
.editorconfig
.codespellignore
renovate.json
justfile
_typos.toml
_readme.tpl
*.png
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aarty"
version = "0.7.0-alpha.1"
version = "0.7.0-alpha.2"
edition = "2021"
rust-version = "1.70"
authors = ["Anas Elgarhy <[email protected]>"]
Expand Down Expand Up @@ -62,3 +62,9 @@ text_image = []

[dev-dependencies]
criterion = "0.5.1"

[profile.release]
panic = "abort"
strip = "symbols"
lto = true
codegen-units = 1
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ WORKDIR /app

FROM chef AS planner
COPY . .
RUN sed -i '/^\[\[bench\]\]/,/^$/d' Cargo.toml
RUN cargo chef prepare --recipe-path recipe.json

FROM chef AS builder
Expand All @@ -11,6 +12,7 @@ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
RUN cargo chef cook --release --recipe-path recipe.json
COPY Cargo.toml .
COPY Cargo.lock .
RUN sed -i '/^\[\[bench\]\]/,/^$/d' Cargo.toml
COPY src/ src/
RUN cargo build --release --locked \
&& rm -f target/release/deps/aarty*
Expand Down

0 comments on commit d5646a5

Please sign in to comment.