forked from fuzzland/cached-eth-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
38c4e3e
commit 7bb1d77
Showing
4 changed files
with
118 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
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
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,18 @@ | ||
FROM ubuntu:jammy | ||
|
||
ARG TARGETARCH | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y ca-certificates curl libcurl4 openssl wait-for-it tini \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN update-ca-certificates | ||
|
||
COPY target/$TARGETARCH/release/cached-eth-rpc /app/cached-eth-rpc | ||
RUN chmod +x /bin/cdn-broker | ||
|
||
ENV ENDPOINTS="eth-chain=https://rpc.ankr.com/eth,bsc-chain=https://rpc.ankr.com/bsc" | ||
ENV RUST_LOG="debug" | ||
ENV RUST_LOG_FORMAT="full" | ||
HEALTHCHECK --interval=1s --timeout=1s --retries=1 CMD curl http://localhost:8124 | ||
EXPOSE 8124 | ||
ENTRYPOINT ["tini", "--", "/app/cached-eth-rpc" ] |