-
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.
Merge pull request #22 from sora-xor/duty/build-relayer
Duty/build relayer
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
set -e | ||
export rustcVersion="1.73.0" | ||
cargo build | ||
cargo b -r |
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,16 @@ | ||
FROM debian:bullseye-20231120-slim | ||
|
||
# Install dependencies | ||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y \ | ||
ca-certificates nano curl && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
find /var/lib/apt/lists/ -type f -not -name lock -delete &&\ | ||
useradd substrate -u 10000 | ||
|
||
USER substrate | ||
|
||
COPY ./target/release/bridge-relayer /usr/local/bin/relayer | ||
|
||
ENTRYPOINT ["relayer"] |