-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 787 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 787 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
27
28
29
# For local testing
#PLATFORMS=linux/amd64
PLATFORMS=linux/arm64/v8
# Defaults:
PHP_VERSION=8.3
NODE_VERSION=20
BUILDX_OPTIONS=--load
DOCKER_CACHE_PATH=.buildx-cache
DOCKER_CACHE=--cache-from "type=local,src=$(DOCKER_CACHE_PATH)" --cache-to "type=local,mode=max,dest=$(DOCKER_CACHE_PATH)"
build-fpm:
docker buildx build $(DOCKER_CACHE) $(BUILDX_OPTIONS) \
--platform $(PLATFORMS) \
--build-arg PHP_MINOR_VERSION=$(PHP_VERSION) \
--tag croneu/phpapp-fpm:php-$(PHP_VERSION) \
--target php-fpm \
.
build-ssh:
docker buildx build $(DOCKER_CACHE) $(BUILDX_OPTIONS) \
--platform $(PLATFORMS) \
--build-arg PHP_MINOR_VERSION=$(PHP_VERSION) --build-arg NODE_VERSION=$(NODE_VERSION) \
--tag croneu/phpapp-ssh:php-$(PHP_VERSION)-node-$(NODE_VERSION) \
--target ssh \
.