-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM ubuntu:22.04 AS builder | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV DEBCONF_NONINTERACTIVE_SEEN=true | ||
|
||
RUN apt-get update && apt-get install -y curl clang openssl libssl-dev gcc g++ \ | ||
pkg-config build-essential libclang-dev linux-libc-dev liburing-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH | ||
|
||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y && \ | ||
rustup install nightly-2024-08-01 && \ | ||
rustup default nightly-2024-08-01 | ||
|
||
WORKDIR /usr/src/era-test-node | ||
COPY . . | ||
|
||
RUN cargo build --release | ||
|
||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
ca-certificates \ | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
EXPOSE 8011 | ||
|
||
WORKDIR /usr/local/bin | ||
COPY --from=builder /usr/src/era-test-node/target/release/era_test_node . | ||
|
||
ENTRYPOINT [ "era_test_node" ] |