Skip to content

Commit

Permalink
readme, builddep
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Mar 16, 2018
1 parent 1ec6634 commit 590e876
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
debian/
init/
9 changes: 9 additions & 0 deletions Dockerfile.builddep
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM debian:jessie

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get -y install \
build-essential \
devscripts \
git-buildpackage

18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# node demo app

## Docker
```
docker build -t yourlogin/node-demo-app .
docker push yourlogin/node-demo-app
```

## Debian package (\*.deb file)
```
docker build -t builddep -f Dockerfile.builddep .
docker run -it -v $PWD:/root builddep
cd /root
apt-get install -y npm
git-buildpackage # creates *.deb file in node-demo-app_<version>_<arch>.deb
exit
cp <container_id>:/node-demo-app_<version>_<arch>.deb .
```

0 comments on commit 590e876

Please sign in to comment.