Skip to content

Commit dc9a1e9

Browse files
committed
added dockerfiles and clock npm command
1 parent 4efcb2d commit dc9a1e9

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:carbon
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY ../package*.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
CMD [ "npm", "run", "clock" ]

clock/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:carbon
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY ../package*.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
CMD [ "npm", "run", "clock" ]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "app.js",
66
"scripts": {
77
"test": "gulp sanity",
8-
"start": "node app"
8+
"start": "node app",
9+
"clock": "node ./services/queue/clock"
910
},
1011
"repository": {
1112
"type": "git",

0 commit comments

Comments
 (0)