forked from codeforhuntsville/Frontier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 630 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 630 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
GIT_HASH=`git rev-parse --short HEAD`
IMAGE_NAME=codeforhuntsville/frontier
IMAGE_VERSION=$(GIT_HASH)
# ..
build:
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) .
docker build -t $(IMAGE_NAME):latest .
clean:
docker rmi -f $(docker images -f "dangling=true" -q)
debug:
docker run -it --rm -e "GOOGLE_PLACES_API_KEY=$(GOOGLE_PLACES_API_KEY)" --entrypoint /bin/bash $(IMAGE_NAME):latest
# deploy:
# docker push $(IMAGE_NAME):$(IMAGE_VERSION)
# docker push $(IMAGE_NAME):latest
run:
docker run -it --rm -e "GOOGLE_PLACES_API_KEY=$(GOOGLE_PLACES_API_KEY)" $(IMAGE_NAME):latest
# ..
.PHONY: build clean debug deploy run