File tree 3 files changed +10
-11
lines changed
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
1
# base image
2
2
FROM node:10.5.0-slim
3
3
4
+ VOLUME /usr/src/app/
5
+ VOLUME /usr/src/app/packages/api/node_modules/
6
+
4
7
WORKDIR /usr/src/app
5
8
6
9
# install global dependencies
7
- RUN npm install pm2 -g
10
+ RUN npm install pm2 -g
11
+
12
+ EXPOSE 80
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ services:
11
11
api :
12
12
build : .
13
13
volumes :
14
- - .:/usr/src/app/
14
+ - .:/usr/src/app/:cached
15
+ - /usr/src/app/packages/api/node_modules/
15
16
ports :
16
17
- ' 8080:80'
17
18
environment :
Original file line number Diff line number Diff line change @@ -3,15 +3,8 @@ module.exports = {
3
3
{
4
4
name : 'API' ,
5
5
script : 'server.js' ,
6
- interpreter : 'babel-node' ,
7
6
watch : true ,
8
- ignore_watch : [ 'node_modules' ] ,
9
- env : {
10
- NODE_ENV : 'development' ,
11
- node_args : [
12
- '--inspect=0.0.0.0:9229' ,
13
- ] ,
14
- } ,
7
+ ignore_watch : [ 'node_modules' ] ,
15
8
} ,
16
9
] ,
17
- } ;
10
+ } ;
You can’t perform that action at this time.
0 commit comments