Dockerfile.native-node: lisätty cli/ workspace-jäsen
Cargo workspace vaatii kaikkien jäsenten Cargo.toml:n kopioinnin. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,12 +13,14 @@ COPY Cargo.toml Cargo.lock ./
|
|||||||
COPY hub/Cargo.toml hub/Cargo.toml
|
COPY hub/Cargo.toml hub/Cargo.toml
|
||||||
COPY node/Cargo.toml node/Cargo.toml
|
COPY node/Cargo.toml node/Cargo.toml
|
||||||
COPY native-node/Cargo.toml native-node/Cargo.toml
|
COPY native-node/Cargo.toml native-node/Cargo.toml
|
||||||
|
COPY cli/Cargo.toml cli/Cargo.toml
|
||||||
|
|
||||||
# Tyhjät src-tiedostot riippuvuuksien esikääntämistä varten
|
# Tyhjät src-tiedostot riippuvuuksien esikääntämistä varten
|
||||||
RUN mkdir -p hub/src node/src native-node/src \
|
RUN mkdir -p hub/src node/src native-node/src cli/src \
|
||||||
&& echo "fn main(){}" > hub/src/main.rs \
|
&& echo "fn main(){}" > hub/src/main.rs \
|
||||||
&& echo "" > node/src/lib.rs \
|
&& echo "" > node/src/lib.rs \
|
||||||
&& echo "fn main(){}" > native-node/src/main.rs \
|
&& echo "fn main(){}" > native-node/src/main.rs \
|
||||||
|
&& echo "fn main(){}" > cli/src/main.rs \
|
||||||
&& cargo build --release -p native-node 2>/dev/null || true
|
&& cargo build --release -p native-node 2>/dev/null || true
|
||||||
|
|
||||||
COPY native-node/src native-node/src
|
COPY native-node/src native-node/src
|
||||||
|
|||||||
Reference in New Issue
Block a user