mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user