forked from radixdlt/radixdlt-scrypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (31 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM rust:slim-bullseye as builder
RUN apt update && apt install -y \
cmake=3.18.4-2+deb11u1 \
clang=1:11.0-51+nmu5 \
build-essential=12.9 \
llvm=1:11.0-51+nmu5
ADD simulator /app/simulator
ADD radix-engine /app/radix-engine
ADD radix-engine-interface /app/radix-engine-interface
ADD sbor /app/sbor
ADD sbor-derive /app/sbor-derive
ADD sbor-derive-common /app/sbor-derive-common
ADD utils app/utils
ADD scrypto-schema /app/scrypto-schema
ADD radix-engine-common /app/radix-engine-common
ADD radix-engine-derive /app/radix-engine-derive
ADD native-sdk /app/native-sdk
ADD radix-engine-macros /app/radix-engine-macros
ADD radix-engine-profiling /app/radix-engine-profiling
ADD radix-engine-store-interface /app/radix-engine-store-interface
ADD radix-engine-stores /app/radix-engine-stores
ADD transaction /app/transaction
ADD radix-engine-queries /app/radix-engine-queries
ADD assets /app/assets
WORKDIR /app
RUN cargo install --path ./simulator
FROM rust:slim-bullseye
COPY --from=builder /app/simulator/target/release/scrypto /usr/local/bin/scrypto
RUN rustup target add wasm32-unknown-unknown
WORKDIR /src
ENTRYPOINT ["scrypto", "build", "--path", "/src"]