Skip to content

Commit 66a9977

Browse files
committed
needed docker-compose changes
1 parent f862bd4 commit 66a9977

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ WORKDIR /app
55
COPY package*.json ./
66

77
RUN yarn install
8-
RUN npm install nodemon@latest -g
8+
#RUN npm install nodemon@latest -g
99

1010
COPY . .
1111

12-
ENTRYPOINT [ "nodemon", "-L", "--exec", "babel-node", "src/index.js" ]
12+
ENTRYPOINT [ "yarn", "start" ]

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
"license": "Apache2",
77
"private": true,
88
"scripts": {
9-
"start": "nodemon --exec babel-node src/index.js",
10-
"dev":
11-
"nodemon -e js,graphql src/index.js --exec \"node --require dotenv/config --require babel-register\"",
9+
"start": "babel-node src/index.js",
10+
"dev": "nodemon -e js,graphql src/index.js --exec \"node --require dotenv/config --require babel-register\"",
1211
"imp": "nodemon -e js,graphql --exec \"babel-node scripts/import.js\"",
1312
"impAll": "nodemon -e js,graphql --exec \"babel-node scripts/importAll.js\"",
1413
"lint": "eslint .",

0 commit comments

Comments
 (0)