-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 848 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
print-%: ; @echo $*=$($*)
export DOCKER_BUILDKIT := 1
export COMPOSE_DOCKER_CLI_BUILD := 1
# -----------------------------------------------------------------------------
# Vars
# -----------------------------------------------------------------------------
dockerfile = Dockerfile
container = puppeteer-prerender-plugin
image = ghcr.io/trinovantes/$(container)
# -----------------------------------------------------------------------------
# Commands
# -----------------------------------------------------------------------------
.PHONY: \
build \
all \
pull \
push \
clean
all: build
build:
docker build \
--file $(dockerfile) \
--tag $(image) \
--progress=plain \
.
pull:
docker pull $(image) --quiet
push:
docker push $(image) --quiet
clean:
rm -rf ./dist
docker container prune -f
docker image prune -f