Restore release for serai-node to obtain sane bootup times

This commit is contained in:
Luke Parker 2023-12-30 23:59:00 -05:00
parent 02776c54a8
commit 6c8040f723
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -48,8 +48,8 @@ RUN --mount=type=cache,target=/root/.cargo \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/serai/target \
mkdir /serai/bin && \
cargo build -p serai-node && \
mv /serai/target/debug/serai-node /serai/bin
cargo build --release -p serai-node && \
mv /serai/target/release/serai-node /serai/bin
FROM debian:bookworm-slim as image
COPY --from=mimalloc libmimalloc.so /usr/lib

View file

@ -1,2 +1,2 @@
cargo build -p serai-node && \
mv /serai/target/debug/serai-node /serai/bin
cargo build --release -p serai-node && \
mv /serai/target/release/serai-node /serai/bin