~dricottone/container-images

ref: 8435da1883ccbff1061b4afe6f623db120d74258 container-images/php/Makefile -rw-r--r-- 1.0 KiB
8435da18Dominic Ricottone Updates 1 year, 6 months ago
                                                                                
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
CONMAN=sudo docker

REGISTRY=registry.intra.dominic-ricottone.com
IMAGE=php
TAG_DEV=development
TAG_DEV_FPM=fpm-development
TAG_PROD_RW=readwrite
TAG_PROD_RO=latest
TAG_PROD_FPM=fpm

image: image-dev image-prod-rw image-prod-ro image-dev-fpm image-prod-fpm

image-dev:
	$(CONMAN) buildx build --push \
		--platform linux/amd64 \
		--tag $(REGISTRY)/$(IMAGE):$(TAG_DEV) \
		. -f Dockerfile.development

image-dev-fpm:
	$(CONMAN) buildx build --push \
		--platform linux/amd64 \
		--tag $(REGISTRY)/$(IMAGE):$(TAG_DEV_FPM) \
		. -f Dockerfile.fpm-development

image-prod-rw:
	$(CONMAN) buildx build --push \
		--platform linux/arm64 \
		--tag $(REGISTRY)/$(IMAGE):$(TAG_PROD_RW) \
		. -f Dockerfile.readwrite

image-prod-ro:
	$(CONMAN) buildx build --push \
		--platform linux/arm64 \
		--tag $(REGISTRY)/$(IMAGE):$(TAG_PROD_RO) \
		.

image-prod-fpm:
	$(CONMAN) buildx build --push \
		--platform linux/amd64 \
		--tag $(REGISTRY)/$(IMAGE):$(TAG_PROD_FPM) \
		. -f Dockerfile.fpm

.PHONY: image image-dev image-prod-rw image-prod-ro image-dev-fpm image-prod-fpm