-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
25 lines (19 loc) · 822 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
NAME=webapp_skeleton
TAG=0.1
MARK=""
update-dependencies:
docker build --build-arg UPDATE_LOCK=1 --no-cache -t ${NAME}:${TAG} .
docker run --rm -it -p 5000:5000 ${NAME}:${TAG} pip freeze > requirements.lock
lockfile:
docker build -t ${NAME}:${TAG} .
docker run --rm -it -p 5000:5000 ${NAME}:${TAG} pip freeze > requirements.lock
dev:
docker build -t ${NAME}:${TAG} .
docker run --rm -it -p 5000:5000 ${NAME}:${TAG}
production:
docker build -t ${NAME}:${TAG} .
docker run --rm -it -p 5000:5000 -e "APP_CONFIG_FILE=/usr/src/app/config/production.py" ${NAME}:${TAG}
test:
docker build --build-arg DEPENDENCIES=requirements_dev.txt -t ${NAME}:${TAG} .
docker run --rm -it -p 5000:5000 ${NAME}:${TAG} pytest -v -m ${MARK}
docker run --rm -it -p 5000:5000 ${NAME}:${TAG} python -m flake8 --max-line-length=100