-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (27 loc) · 750 Bytes
/
Makefile
File metadata and controls
48 lines (27 loc) · 750 Bytes
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
39
40
41
42
43
44
45
46
47
48
NAME = blind-coiding-test
COMPOSEFILE = ./docker-compose.yml
FILE = $(COMPOSEFILE)
FRONT_BUILDFILE = ./next/.next
# ./backend/back \
BUILDFILE = $(FRONT_BUILDFILE) $(BACK_BUILDFILE)
all : $(BUILD) $(NAME)
server : FILE = ./docker-compose.server-only.yml
server : $(NAME)
cleanbuild:
rm -rf $(BUILDFILE)
$(FRONT_BUILDFILE) :
if ! test -f $(FRONT_BUILDFILE); then \
cd next && \
npm install && \
npm run build; \
fi
$(NAME) : $(BUILDFILE)
docker-compose -f $(FILE) up --build #--detach
clean :
docker-compose -f $(FILE) down --rmi all --remove-orphans -v
ps :
docker-compose -f $(FILE) ps -a
fclean : clean cleanbuild
docker system prune --volumes --all --force
re : fclean all
.PHONY : all ps dev clean fclean re