There was an error while loading. Please reload this page.
1 parent ac8ebe8 commit 30f2f29Copy full SHA for 30f2f29
1 file changed
asap-query-engine/Dockerfile
@@ -18,8 +18,12 @@ COPY Cargo.toml ./
18
COPY Cargo.lock ./
19
COPY asap-query-engine/Cargo.toml ./asap-query-engine/
20
21
-# Create a dummy main.rs to build dependencies
22
-RUN mkdir -p asap-query-engine/src && echo "fn main() {}" > asap-query-engine/src/main.rs
+# Create dummy Rust targets to build dependencies.
+# Cargo.toml declares explicit bin paths, so they must exist in this cache layer.
23
+RUN mkdir -p asap-query-engine/src/bin \
24
+ && echo "fn main() {}" > asap-query-engine/src/main.rs \
25
+ && echo "fn main() {}" > asap-query-engine/src/bin/precompute_engine.rs \
26
+ && echo "fn main() {}" > asap-query-engine/src/bin/test_e2e_precompute.rs
27
28
# Build dependencies (this layer will be cached)
29
WORKDIR /code/asap-query-engine
0 commit comments