Skip to content

Commit d47abe6

Browse files
author
Ke, Mingze
committed
Added Dockerfile
1 parent e548171 commit d47abe6

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM mhart/alpine-node:4
2+
3+
WORKDIR /src
4+
ADD . /src
5+
6+
# If you have native dependencies, you'll need extra tools
7+
RUN apk add --no-cache make gcc g++ python
8+
9+
# If you need npm, don't use a base tag
10+
RUN npm install
11+
12+
EXPOSE 8080
13+
14+
ENV NODE_ENV production
15+
CMD ["npm", "start"]

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
"webduino",
1111
"blockly"
1212
],
13+
"scripts": {
14+
"start": "node node_modules/node-static/bin/cli.js -a 0.0.0.0"
15+
},
1316
"license": "MIT",
1417
"dependencies": {
18+
"node-static": "^0.7.7",
1519
"webduino-js": "0.x"
1620
}
1721
}

0 commit comments

Comments
 (0)