Skip to content

Commit

Permalink
feat(docker): add ilp-cli dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
emschwartz committed Oct 2, 2019
1 parent b14ab6b commit c4e4daf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker/ilp-cli.dockerfile
@@ -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" ]
1 change: 1 addition & 0 deletions scripts/docker-build.sh
Expand Up @@ -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.