mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-22 18:54:40 +00:00
Update Serai node Dockerfile
This commit is contained in:
parent
39eae2795f
commit
89865b549c
3 changed files with 8 additions and 5 deletions
|
@ -35,7 +35,7 @@ LABEL description="STAGE 2: Copy and Run"
|
|||
WORKDIR /home/serai
|
||||
|
||||
# Copy the Message Queue binary and relevant license
|
||||
COPY --from=builder /serai/bin/* /bin/
|
||||
COPY --from=builder /serai/bin/serai-message-queue /bin/
|
||||
COPY --from=builder /serai/AGPL-3.0 .
|
||||
|
||||
# Upgrade packages
|
||||
|
|
|
@ -38,7 +38,7 @@ LABEL description="STAGE 2: Copy and Run"
|
|||
WORKDIR /home/serai
|
||||
|
||||
# Copy necessary files to run node
|
||||
COPY --from=builder /serai/bin/* /bin/
|
||||
COPY --from=builder /serai/bin/serai-processor /bin/
|
||||
COPY --from=builder /serai/AGPL-3.0 .
|
||||
|
||||
# Upgrade packages and install openssl
|
||||
|
|
|
@ -16,7 +16,7 @@ ADD AGPL-3.0 /serai
|
|||
|
||||
WORKDIR /serai
|
||||
|
||||
RUN apt update && apt upgrade -y && apt install -y make clang libssl-dev protobuf-compiler
|
||||
RUN apt update && apt upgrade -y && apt install -y git make clang libssl-dev protobuf-compiler
|
||||
|
||||
# Add the wasm toolchain
|
||||
RUN rustup target add wasm32-unknown-unknown
|
||||
|
@ -26,7 +26,10 @@ RUN --mount=type=cache,target=/root/.cargo \
|
|||
--mount=type=cache,target=/usr/local/cargo/registry \
|
||||
--mount=type=cache,target=/usr/local/cargo/git \
|
||||
--mount=type=cache,target=/serai/target \
|
||||
cd substrate/node && cargo build --release
|
||||
cd substrate/node && \
|
||||
cargo build --release && \
|
||||
mkdir /serai/bin && \
|
||||
mv /serai/target/release/serai-node /serai/bin
|
||||
|
||||
# Prepare Image
|
||||
FROM debian:bookworm-slim as image
|
||||
|
@ -35,7 +38,7 @@ LABEL description="STAGE 2: Copy and Run"
|
|||
WORKDIR /home/serai
|
||||
|
||||
# Copy necessary files to run node
|
||||
COPY --from=builder /serai/target/release/ /bin/
|
||||
COPY --from=builder /serai/bin/serai-node /bin/
|
||||
COPY --from=builder /serai/AGPL-3.0 .
|
||||
|
||||
# Upgrade packages
|
||||
|
|
Loading…
Reference in a new issue