Misc tweaks in the style of the last commit

Notably removes the `kvdb-rocksdb` patch via updating the Substrate version
used to one which disables the `jemalloc` feature itself.

Simplifies the path of the built WASM file within the Dockerfile to consumers.
This also ensures if the image is built, the path of the WASM file is as
expected (prior unasserted).
This commit is contained in:
Luke Parker
2025-12-02 09:10:44 -05:00
parent 9a75f92864
commit 3d549564a8
9 changed files with 110 additions and 138 deletions

View File

@@ -48,6 +48,10 @@ WORKDIR /serai
# Build the runtime
RUN cargo build --release -p serai-runtime
# Copy the artifact
RUN cp /serai/target/release/wbuild/serai-runtime/serai_runtime.wasm /serai/serai.wasm
# Clean up the build directory
RUN cargo clean
# Copy the runtime to the provided volume
CMD ["cp", "/serai/target/release/wbuild/serai-runtime/serai_runtime.wasm", "/volume/serai.wasm"]
CMD ["cp", "/serai/serai.wasm", "/volume/serai.wasm"]