File tree 4 files changed +13
-4
lines changed 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,12 @@ docify = { workspace = true }
14
14
15
15
[features ]
16
16
generate-readme = []
17
+
18
+ [profile .release ]
19
+ opt-level = 3
20
+ panic = " unwind"
21
+
22
+ [profile .production ]
23
+ codegen-units = 1
24
+ inherits = " release"
25
+ lto = true
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ WORKDIR /polkadot
4
4
COPY . /polkadot
5
5
6
6
RUN cargo fetch
7
- RUN cargo build --workspace --locked --release
7
+ RUN cargo build --workspace --locked --profile production
8
8
9
9
FROM docker.io/parity/base-bin:latest
10
10
11
- COPY --from=builder /polkadot/target/release /parachain-template-node /usr/local/bin
11
+ COPY --from=builder /polkadot/target/production /parachain-template-node /usr/local/bin
12
12
13
13
USER root
14
14
RUN useradd -m -u 1001 -U -s /bin/sh -d /polkadot polkadot && \
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ Please see the installation section at [`crates.io/omni-node`](https://crates.io
92
92
#### Build ` parachain-template-runtime `
93
93
94
94
``` sh
95
- cargo build --release
95
+ cargo build --profile production
96
96
```
97
97
98
98
#### Install ` staging-chain-spec-builder `
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ Please see the installation section at [`crates.io/omni-node`](https://crates.io
94
94
#### Build ` parachain-template-runtime `
95
95
96
96
``` sh
97
- cargo build --release
97
+ cargo build --profile production
98
98
```
99
99
100
100
#### Install ` staging-chain-spec-builder `
You can’t perform that action at this time.
0 commit comments