Skip to content

Commit d7e586c

Browse files
committed
add Dockerfile
1 parent 0f7c0d6 commit d7e586c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:6.4
2+
3+
RUN mkdir -p /usr/src/app
4+
WORKDIR /usr/src/app
5+
6+
COPY package.json /usr/src/app/
7+
RUN npm install --registry=https://registry.npm.taobao.org
8+
9+
COPY . /usr/src/app
10+
RUN npm run build
11+
12+
EXPOSE 80
13+
14+
ENV PORT=80
15+
CMD [ "npm", "start" ]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.3.0",
44
"private": true,
55
"scripts": {
6-
"start": "tsc && node dist/index.js",
6+
"start": "node dist/index.js",
77
"build": "tsc"
88
},
99
"dependencies": {

0 commit comments

Comments
 (0)