-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 840 Bytes
/
Makefile
File metadata and controls
40 lines (28 loc) · 840 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
# Makefile for Face Swap Web
# Frontend
install-ui:
npm install
build-ui: install-ui
npm run build
run-ui:
npm run dev
# Backend
install-backend:
cd backend && pip install --no-cache-dir -r requirements.txt
run-backend:
cd backend && FLASK_APP=api.py flask run --host=0.0.0.0 --port=5555
# Docker
build-ui-container: install-ui
docker build -t faceswap-ui .
build-backend-container:
cd backend && docker build -t faceswap-backend .
run-ui-container:
docker run --rm -p 8080:80 faceswap-ui
run-backend-container:
docker run --rm -p 5555:5555 faceswap-backend
# Clean
clean-ui:
rm -rf dist node_modules
clean-backend:
cd backend && rm -rf __pycache__
.PHONY: install-ui build-ui run-ui install-backend run-backend build-ui-container build-backend-container run-ui-container run-backend-container clean-ui clean-backend