File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 99build :
1010 docker build -t $(IMGNAME ) .
1111
12- push :
13- docker push $(IMGNAME )
14-
1512compile :
16- docker exec -it $(APPNAME ) yarn build
13+ @docker run --rm -it \
14+ -e NODE_ENV=development \
15+ -e NODE_TLS_REJECT_UNAUTHORIZED=0 \
16+ --add-host host.docker.internal:host-gateway \
17+ --name $(APPNAME ) \
18+ --network dev \
19+ -p $(APPPORT ) :7200 \
20+ -v $(CURDIR ) :/usr/src/app \
21+ $(IMGNAME ) yarn build
1722
1823dev :
1924 @docker run -it --rm \
2631 -v $(CURDIR ) :/usr/src/app \
2732 $(IMGNAME ) yarn start:dev
2833
34+ prod :
35+ @docker run -it --rm \
36+ -e NODE_ENV=production \
37+ -e NODE_TLS_REJECT_UNAUTHORIZED=0 \
38+ --add-host host.docker.internal:host-gateway \
39+ --name $(APPNAME ) \
40+ --network dev \
41+ -p $(APPPORT ) :7200 \
42+ -v $(CURDIR ) :/usr/src/app \
43+ $(IMGNAME ) yarn start:prod
44+
2945exec :
3046 @docker run -it --rm \
3147 --add-host host.docker.internal:host-gateway \
You can’t perform that action at this time.
0 commit comments