File tree 3 files changed +25
-2
lines changed
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
1
+ node_modules
2
+ npm-debug.log
3
+ Dockerfile *
4
+ docker-compose *
5
+ .dockerignore
6
+ .git
7
+ .gitignore
8
+ README.md
9
+ LICENSE
10
+ .vscode
Original file line number Diff line number Diff line change
1
+ FROM node:10-alpine
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ COPY package*.json ./
6
+ RUN npm install
7
+
8
+ COPY . .
9
+
10
+ EXPOSE 3000
11
+
12
+ CMD [ "npm" , "start" , "start:build" ]
Original file line number Diff line number Diff line change 5
5
"main" : " src/index.js" ,
6
6
"scripts" : {
7
7
"start" : " nodemon ./src/server.js" ,
8
- "start_build" : " webpack --mode production --progress && npm run prod" ,
9
8
"build" : " webpack --progress --mode production" ,
10
- "prod" : " node ./dist/bundle.js"
9
+ "prod" : " node ./dist/bundle.js" ,
10
+ "build:prod" : " webpack --mode production --progress && npm run prod" ,
11
+ "prod:pm2" : " pm2 start ./dist/bundle.js --name routing"
11
12
},
12
13
"author" : {
13
14
"name" : " Muhammad Imran Siddique" ,
You can’t perform that action at this time.
0 commit comments