Skip to content
Permalink
Browse files

feat(docker): add ilp-cli dockerfile

  • Loading branch information...
emschwartz committed Oct 2, 2019
1 parent b14ab6b commit c4e4daf1696a1fb7f29925872e0d8e27c673db3a
Showing with 28 additions and 0 deletions.
  1. +27 −0 docker/ilp-cli.dockerfile
  2. +1 −0 scripts/docker-build.sh
@@ -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" ]
@@ -4,3 +4,4 @@
docker build -f ./docker/node.dockerfile -t interledgerrs/node:latest .
docker build -f ./docker/eth-se.dockerfile -t interledgerrs/settlement-engine:latest .
docker build -f ./docker/Dockerfile -t interledgerrs/testnet-bundle:latest .
docker build -f ./docker/ilp-cli.dockerfile -t interledgerrs/ilp-cli:latest .

0 comments on commit c4e4daf

Please sign in to comment.
You can’t perform that action at this time.