2022-10-13 18:21:26 -07:00
|
|
|
FROM rust:1.62@sha256:5777f201f507075309c4d2d1c1e8d8219e654ae1de154c844341050016a64a0c as aptos-node
|
|
|
|
|
2022-12-12 13:50:00 -08:00
|
|
|
RUN apt-get update && apt-get -y install libclang-dev jq cmake curl npm gcc g++ make lld
|
2022-10-13 18:21:26 -07:00
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN git clone https://github.com/aptos-labs/aptos-core.git
|
|
|
|
WORKDIR /tmp/aptos-core
|
2023-05-31 15:47:00 -07:00
|
|
|
|
|
|
|
# Build aptos 1.0.4
|
|
|
|
RUN git reset --hard 61615bb3326fc8770e6df04d52aec97afa9148df
|
2022-10-13 18:21:26 -07:00
|
|
|
RUN cargo build -p aptos --profile cli
|
|
|
|
|
|
|
|
FROM rust:1.62@sha256:5777f201f507075309c4d2d1c1e8d8219e654ae1de154c844341050016a64a0c as export-stage
|
|
|
|
COPY --from=aptos-node /tmp/aptos-core/target/cli/aptos /usr/local/cargo/bin/aptos
|