Skip to content

Commit

Permalink
fix: copy the bench files in the Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Oct 9, 2024
1 parent 435e5d7 commit 26761f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion mithril-signer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ repository = { workspace = true }

[[bench]]
name = "mktree_store_sqlite"
path = "benches/mktree_store_sqlite.rs"
harness = false

[dependencies]
Expand Down
5 changes: 4 additions & 1 deletion mithril-signer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ WORKDIR /app
COPY . .

# Build the app using a dummy main in order to cache dependencies
RUN mv /app/mithril-signer /app/mithril-signer.1 && mkdir -p /app/mithril-signer/src
RUN mv /app/mithril-signer /app/mithril-signer.1 \
&& mkdir -p /app/mithril-signer/src \
&& mkdir -p /app/mithril-signer/benches
COPY mithril-signer/Cargo.toml /app/mithril-signer/
COPY mithril-signer/benches/* /app/mithril-signer/benches/
RUN echo "fn main () {}" > /app/mithril-signer/src/main.rs
RUN cargo build --release -p mithril-signer --manifest-path /app/mithril-signer/Cargo.toml

Expand Down

0 comments on commit 26761f4

Please sign in to comment.