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

add docker #30

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## how to run as docker

build image
```
bash docker/build.sh
```

now run
```
bash docker/run.sh
```


visit http://localhost:9250 and enjoy
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
From node:8.16.1-alpine
WORKDIR /home/server
ADD . .
RUN npm install --no-save
1 change: 1 addition & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build -f docker/Dockerfile -t mstscjs:0.2.4 .
1 change: 1 addition & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run -p 9250:9250 mstscjs:0.1.0 node server.js