Skip to content

Commit

Permalink
add a Docker setup for blockchain-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dindinw committed Feb 18, 2017
1 parent 763c836 commit 9bd206d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
npm-debug.log
.git/
.gitignore
Dockerfile
docker-*

.dockerignore
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:alpine

MAINTAINER https://github.com/anders94/blockchain-demo

EXPOSE 3000

WORKDIR /blockchain-demo

COPY package.json /blockchain-demo

RUN npm install

COPY . /blockchain-demo

CMD ["bin/www"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,14 @@ Point a web browser at the demo:
http://localhost:3000
```

## Setup by using Docker

```
cd blockchain-demo
docker-compose up -d
```
Then go the `http://localhost:3000`, enjoy!


## Send Thanks
Bitcoin greatfully accepted: `1K3NvcuZzVTueHW1qhkG2Cm3viRkh2EXJp`
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '2'
services:
blockchain-demo:
build: .
image: blockchain-demo:latest
ports:
- "3000:3000"

0 comments on commit 9bd206d

Please sign in to comment.