-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
38 lines (27 loc) · 979 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env make -f
# -*- makefile -*-
SHELL = bash -e
image:
@docker-compose -p moviebox -f docker-compose.yml build --force-rm --pull
start:
@docker-compose -p moviebox -f docker-compose.yml up --remove-orphans -d
dependencies: start
@docker-compose -p moviebox -f docker-compose.yml exec \
-T --user moviebox moviebox yarn install
update: start
@docker-compose -p moviebox -f docker-compose.yml exec \
-T --user moviebox moviebox yarn run update
dist: start
@docker-compose -p moviebox -f docker-compose.yml exec \
-T --user moviebox moviebox yarn run dist
console: start
@docker-compose -p moviebox -f docker-compose.yml exec \
--user moviebox moviebox bash
stop:
@docker-compose -p moviebox -f docker-compose.yml stop moviebox
down:
@docker-compose -p moviebox -f docker-compose.yml down \
--remove-orphans
destroy:
@docker-compose -p moviebox -f docker-compose.yml down \
--rmi all --remove-orphans -v