11FROM cubejs/rust-builder:bookworm-llvm-18 AS builder
22
33WORKDIR /build/cubestore
4- COPY Cargo.toml .
5- COPY Cargo.lock .
6- COPY cuberockstore cuberockstore
7- COPY cubehll cubehll
8- COPY cubezetasketch cubezetasketch
9- COPY cubedatasketches cubedatasketches
10- COPY cuberpc cuberpc
11- COPY cubestore-sql-tests cubestore-sql-tests
12- COPY cubestore/Cargo.toml cubestore/Cargo.toml
4+
5+ COPY cubeshared /build/cubeshared
6+
7+ COPY cubestore/Cargo.toml .
8+ COPY cubestore/Cargo.lock .
9+ COPY cubestore/cuberockstore cuberockstore
10+ COPY cubestore/cubehll cubehll
11+ COPY cubestore/cubezetasketch cubezetasketch
12+ COPY cubestore/cubedatasketches cubedatasketches
13+ COPY cubestore/cuberpc cuberpc
14+ COPY cubestore/cubestore-sql-tests cubestore-sql-tests
15+ COPY cubestore/cubestore/Cargo.toml cubestore/Cargo.toml
1316RUN mkdir -p cubestore/src/bin && \
1417 echo "fn main() {print!(\" Dummy main\" );} // dummy file" > cubestore/src/bin/cubestored.rs
1518
@@ -18,8 +21,8 @@ RUN [ "$WITH_AVX2" -eq "1" ] && export RUSTFLAGS="-C target-feature=+avx2"; \
1821 cargo build --release -p cubestore
1922
2023# Cube Store get version from his own package
21- COPY package.json package.json
22- COPY cubestore cubestore
24+ COPY cubestore/ package.json package.json
25+ COPY cubestore/cubestore cubestore
2326RUN [ "$WITH_AVX2" -eq "1" ] && export RUSTFLAGS="-C target-feature=+avx2" ; \
2427 cargo build --release -p cubestore
2528
0 commit comments