-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #546 from near/main
Prod Release 06/02/24
- Loading branch information
Showing
31 changed files
with
1,815 additions
and
467 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,2 @@ | ||
**/target | ||
|
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,19 @@ | ||
FROM rust:1.75 AS build | ||
ARG CARGO_BUILD_MODE=release | ||
WORKDIR /tmp/ | ||
COPY block-streamer/ block-streamer/ | ||
COPY registry/types/ registry/types/ | ||
WORKDIR /tmp/block-streamer/ | ||
RUN apt update && apt install -yy protobuf-compiler | ||
RUN if [ "$CARGO_BUILD_MODE" = "debug" ]; then \ | ||
cargo build --package block-streamer; \ | ||
else \ | ||
cargo build --release --package block-streamer; \ | ||
fi | ||
|
||
FROM ubuntu:22.04 | ||
ARG CARGO_BUILD_MODE=release | ||
RUN apt update && apt install -yy openssl ca-certificates | ||
USER nobody | ||
COPY --from=build /tmp/block-streamer/target/$CARGO_BUILD_MODE/block-streamer /block-streamer | ||
ENTRYPOINT ["/block-streamer"] |
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
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
Oops, something went wrong.