forked from Azure-Samples/flask-reactize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
30 lines (23 loc) · 1.09 KB
/
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
SHELL=/bin/bash
clean:
@find . -name '__pycache__' -exec rm -fr {} +
@find . -name '.pytest_cache' -exec rm -fr {} +
@find . -name 'build' ! -path '*/node_modules/*' -exec rm -fr {} +
@find . -name 'dist' ! -path '*/node_modules/*' -exec rm -fr {} +
@find . -name 'flask_reactize.egg-info' -exec rm -fr {} +
@find . -name '.coverage' -exec rm -f {} +
@find . -name 'coverage.xml' -exec rm -f {} +
@find . -name 'pytest-results.xml' -exec rm -f {} +
install-deps:
@make install-deps --directory src/flask-reactize
docker-build-sample-py38:
@test -d ./sample/static || (echo "You need to compile your React application first"; exit 1)
@echo "Build docker image"
@docker build --no-cache -t flask-reactize-sample:latest -f DockerFile-py38 .
docker-build-sample-py310:
@test -d ./sample/static || (echo "You need to compile your React application first"; exit 1)
@echo "Build docker image"
@docker build -t flask-reactize-sample:latest -f DockerFile-py310 .
docker-run-sample:
@test -z "$(shell docker images -q flask-reactize-sample:latest)" || \
docker run -p 8080:80 flask-reactize-sample:latest