-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (22 loc) · 793 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
.PHONY: docker
images: clean-dependencies frontend-image backend-image bff-image clean-builds
frontend-image: frontend-build
cd frontend && docker build -t frontend .
backend-image: backend-build
cd backend && docker build -t backend .
bff-image: bff-build
cd back-for-front && docker build -t bff .
backend-build:
cd backend && dep ensure && go test -v ./... && GOOS=linux GOARCH=amd64 go build -o backend
bff-build:
cd back-for-front && dep ensure && cd src && go test -v ./... && GOOS=linux GOARCH=amd64 go build -o bff
frontend-build:
cd frontend && npm install && npm run build
clean-dependencies:
rm -rf backend/vendor
rm -rf back-for-front/vendor
rm -rf frontend/node_modules
clean-builds:
rm -rf backend/backend
rm -rf back-for-front/src/bff
rm -rf frontend/build