-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 1.04 KB
/
Makefile
File metadata and controls
43 lines (30 loc) · 1.04 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# __ __
# __ ______ ____ ___ ____ _/ /____ ____ ____/ /
# / / / / __ \/ __ `__ \/ __ `/ __/ _ \/ __ \/ __ /
# / /_/ / /_/ / / / / / / /_/ / /_/ __/ /_/ / /_/ /
# \__, /\____/_/ /_/ /_/\__,_/\__/\___/\____/\__,_/
# /____ matthewdavis.io, holla!
#
NAME := appsoa/docker-alpine-nmap
ALIAS := nmap
VERSION := 1.0.0
USER_EMAIL := $(shell git config --get user.email)
USER_NAME := $(shell git config --get user.name)
AUTHOR := "${USER_NAME} <${USER_EMAIL}>"
export
.PHONY: all build test tag_latest release
all: clean build
help:
@echo AUTHOR LABEL: ${AUTHOR}
build:
@echo "Building an image with the current tag $(NAME):$(VERSION).."
docker build --rm \
--build-arg AUTHOR=$(AUTHOR) \
--tag $(NAME):$(VERSION) \
.
run:
docker run --rm -it $(NAME):$(VERSION) -Pn -p80,443 google.com
tag_latest:
docker tag $(NAME):$(VERSION) $(NAME):latest
release:
docker push $(NAME)