Skip to content

Commit f37e05e

Browse files
committed
Fix Docker build failure due to missing bench file
1 parent 3fe349a commit f37e05e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ RUN apt-get update && \
1414
# Copy Cargo manifests and cache dependencies
1515
COPY Cargo.toml Cargo.lock ./
1616

17-
# Create a dummy main file to allow dependency caching
18-
RUN mkdir src && echo "fn main() {}" > src/main.rs
17+
# Create dummy files to allow dependency caching
18+
RUN mkdir src && echo "fn main() {}" > src/main.rs && \
19+
mkdir benches && echo "fn main() {}" > benches/core_benchmarks.rs
1920

2021
# Build a dummy release binary (to cache dependencies)
2122
RUN cargo build --release

0 commit comments

Comments
 (0)