-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ec6634
commit 590e876
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
debian/ | ||
init/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . | ||
``` |