File tree 2 files changed +23
-15
lines changed
2 files changed +23
-15
lines changed Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+ services :
3
+ react-app :
4
+ build :
5
+ context : . # where are all the files located for this project
6
+ dockerfile : Dockerfile.dev
7
+ ports :
8
+ - " 3000:3000"
9
+ volumes :
10
+ - /app/node_modules # do not try to map node_modules directory to anything
11
+ - .:/app # map current directory from outside the container to the /app folder inside the container
12
+ tests :
13
+ build :
14
+ context : . # where are all the files located for this project
15
+ dockerfile : Dockerfile.dev
16
+ volumes :
17
+ - /app/node_modules # do not try to map node_modules directory to anything
18
+ - .:/app
19
+ command : ["npm", "run", "test"]
Original file line number Diff line number Diff line change 1
1
version : ' 3'
2
2
services :
3
- react-app :
3
+ web :
4
4
build :
5
- context : . # where are all the files located for this project
6
- dockerfile : Dockerfile.dev
5
+ context : .
6
+ dockerfile : Dockerfile
7
7
ports :
8
- - " 3000:3000"
9
- volumes :
10
- - /app/node_modules # do not try to map node_modules directory to anything
11
- - .:/app # map current directory from outside the container to the /app folder inside the container
12
- tests :
13
- build :
14
- context : . # where are all the files located for this project
15
- dockerfile : Dockerfile.dev
16
- volumes :
17
- - /app/node_modules # do not try to map node_modules directory to anything
18
- - .:/app
19
- command : ["npm", "run", "test"]
8
+ - ' 80:80'
You can’t perform that action at this time.
0 commit comments