-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (25 loc) · 1.24 KB
/
Makefile
File metadata and controls
29 lines (25 loc) · 1.24 KB
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
container:
@echo "===================================================================="
@echo "Build production ready docker container"
@echo "===================================================================="
@docker build --tag template/app:prod --tag template/app:latest .
prod: container
@echo "===================================================================="
@echo "Start and enter production ready docker container"
@echo "===================================================================="
@docker run --env-file=.env --rm -it template/app:prod /bin/bash
dev-container:
@echo "===================================================================="
@echo "Build Development Container"
@echo "===================================================================="
@docker build --target dev --tag template/app:dev .
bash: dev-container
@echo "===================================================================="
@echo "Start and enter development container"
@echo "===================================================================="
@docker run --env-file=.env --rm -it \
--volume $(shell pwd)/app:/home/python/app \
--workdir /home/python/app \
template/app:dev \
/bin/bash
.PHONY: bash dev-container container prod