Skip to content

Commit 26761f4

Browse files
committed
fix: copy the bench files in the Docker image
1 parent 435e5d7 commit 26761f4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mithril-signer/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ repository = { workspace = true }
1111

1212
[[bench]]
1313
name = "mktree_store_sqlite"
14-
path = "benches/mktree_store_sqlite.rs"
1514
harness = false
1615

1716
[dependencies]

mithril-signer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ WORKDIR /app
1313
COPY . .
1414

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

0 commit comments

Comments
 (0)