Skip to content

Commit

Permalink
fix: dockerfile multichain (#648)
Browse files Browse the repository at this point in the history
* dependency fix

* fix Dockerfile.multichain
  • Loading branch information
ppca authored Jun 14, 2024
1 parent 1b2b49f commit b4d5234
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 17 deletions.
10 changes: 4 additions & 6 deletions Dockerfile.multichain
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ RUN sed -i 's#mpc-keys = { path = "../keys" }##' Cargo.toml
RUN sed -i 's#mpc-contract = { path = "../contract" }##' Cargo.toml
RUN sed -i 's#crypto-shared = { path = "../crypto-shared" }##' Cargo.toml
RUN cargo build --release
COPY . .
RUN sed -i 's#"mpc-recovery",##' Cargo.toml
RUN sed -i 's#"integration-tests",##' Cargo.toml
RUN sed -i 's#"load-tests",##' Cargo.toml
COPY chain-signatures/. .
RUN sed -i 's#"keys",##' Cargo.toml
RUN sed -i 's#"crypto-shared",##' Cargo.toml
RUN sed -i 's#"contract",##' Cargo.toml
RUN sed -i 's#target-dir = "../target"#target-dir = "target"#' .cargo/config.toml
RUN cargo build --release --package mpc-recovery-node

FROM debian:stable-slim as runtime
Expand All @@ -26,4 +24,4 @@ RUN update-ca-certificates
COPY --from=builder /usr/src/app/target/release/mpc-recovery-node /usr/local/bin/mpc-recovery-node
WORKDIR /usr/local/bin

ENTRYPOINT [ "mpc-recovery-node" ]
ENTRYPOINT [ "mpc-recovery-node" ]
6 changes: 3 additions & 3 deletions chain-signatures/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions chain-signatures/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ url = { version = "2.4.0", features = ["serde"] }
near-account-id = "1.0.0"
near-crypto = "0.21.2"
near-fetch = "0.3.1"
near-lake-framework = { git = "https://github.com/near/near-lake-framework-rs", branch = "dmd/bump-dependencies" }
near-lake-primitives = { git = "https://github.com/near/near-lake-framework-rs", branch = "dmd/bump-dependencies" }
near-lake-framework = { git = "https://github.com/near/near-lake-framework-rs", rev = "e0b28590ffe6b6441987d302843d45bef55ef50e" }
near-lake-primitives = { git = "https://github.com/near/near-lake-framework-rs", rev = "e0b28590ffe6b6441987d302843d45bef55ef50e" }
near-primitives = "0.21.2"
near-sdk = { git = "https://github.com/near/near-sdk-rs.git", rev = "5a9acaedc95c5721d2088f263bc99e3de574decf", features = ["legacy", "unit-testing"] }

Expand Down
60 changes: 54 additions & 6 deletions integration-tests/chain-signatures/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b4d5234

Please sign in to comment.