Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): add ilp-cli dockerfile
- Loading branch information
1 parent
b14ab6b
commit c4e4daf
Showing
2 changed files
with
28 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,27 @@ | ||
# Build Interledger node into standalone binary | ||
FROM clux/muslrust:stable as rust | ||
|
||
WORKDIR /usr/src | ||
COPY ./Cargo.toml /usr/src/Cargo.toml | ||
COPY ./crates /usr/src/crates | ||
|
||
# TODO: investigate using a method like https://whitfin.io/speeding-up-rust-docker-builds/ | ||
# to ensure that the dependencies are cached so the build doesn't take as long | ||
# RUN cargo build --all-features --package ilp-node --package interledger-settlement-engines --package ilp-cli | ||
RUN cargo build --release --all-features --package ilp-cli | ||
|
||
FROM alpine | ||
|
||
# Expose ports for HTTP server | ||
EXPOSE 7770 | ||
|
||
# Install SSL certs | ||
RUN apk --no-cache add \ | ||
ca-certificates | ||
|
||
# Copy Interledger binary | ||
COPY --from=rust \ | ||
/usr/src/target/x86_64-unknown-linux-musl/release/ilp-cli \ | ||
/usr/local/bin/ilp-cli | ||
|
||
ENTRYPOINT [ "ilp-cli" ] |
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