Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: build and push Docker image #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
**/node_modules
*Dockerfile*
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:10 as build
WORKDIR /usr/src/app

COPY package.json package-lock.json ./
RUN npm install --production

COPY . ./

FROM node:10-slim

RUN npm install -g moneyd --unsafe-perm

COPY --from=build /usr/src/app /usr/local/lib/node_modules/moneyd/node_modules/moneyd-uplink-xrp

EXPOSE 7768
ENTRYPOINT [ "/usr/local/bin/moneyd" , "-c", "/root/.moneyd/.moneyd.json" ]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@

[![Greenkeeper badge](https://badges.greenkeeper.io/interledgerjs/moneyd-uplink-xrp.svg)](https://greenkeeper.io/)

## Run with [Docker](https://docs.docker.com/install/)

```sh
sudo docker build -t moneyd-xrp .
sudo docker volume create moneyd-cfg
sudo docker run --rm -v moneyd-cfg:/root/.moneyd -it moneyd-xrp xrp:configure
sudo docker run --rm -v moneyd-cfg:/root/.moneyd:ro -e "DEBUG=*" -p 7768:7768 moneyd-xrp xrp:start
```