Skip to content

Commit 0d6836c

Browse files
author
Muhammad Imran Siddique
committed
'error_removed'
1 parent 2b6c803 commit 0d6836c

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.dockerignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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"]

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"main": "src/index.js",
66
"scripts": {
77
"start": "nodemon ./src/server.js",
8-
"start_build": "webpack --mode production --progress && npm run prod",
98
"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"
1112
},
1213
"author": {
1314
"name": "Muhammad Imran Siddique",

0 commit comments

Comments
 (0)