-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
28 lines (23 loc) · 1004 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
# phly-docker-php-swoole Makefile
#
# Build the docker image from the Dockerfile present.
#
SWOOLEVERSION?=4.4.17
.PHONY : all standard alpine
all: standard alpine
alpine:
@echo "Creating alpine container"
@echo "- Building alpine container"
- docker build --memory-swap -1 -t phly-docker-php-swoole:7.4-alpine -f ./alpine.Dockerfile --build-arg SWOOLEVERSION=$(SWOOLEVERSION) .
@echo "- Tagging alpine image"
- docker tag phly-docker-php-swoole:7.4-alpine mwop/phly-docker-php-swoole:7.4-alpine
@echo "- Pushing alpine image to hub"
- docker push mwop/phly-docker-php-swoole:7.4-alpine
standard:
@echo "Creating standard container"
@echo "- Building standard container"
- docker build --memory-swap -1 -t phly-docker-php-swoole:7.4 -f ./Dockerfile --build-arg SWOOLEVERSION=$(SWOOLEVERSION) .
@echo "- Tagging standard image"
- docker tag phly-docker-php-swoole:7.4 mwop/phly-docker-php-swoole:7.4
@echo "- Pushing standard image to hub"
- docker push mwop/phly-docker-php-swoole:7.4