-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 736 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 736 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
IMAGE = spacetabio/static-server-php
VERSION = 4.1.0
FILE = Dockerfile
image:
sed "s/{{ version }}/$(VERSION)/g" $(FILE) > /tmp/$(FILE)
docker build --platform linux/amd64 -f /tmp/$(FILE) -t $(IMAGE):$(VERSION) .
push:
docker push $(IMAGE):$(VERSION)
run:
docker run --rm -it --init -p 8088:8080 $(IMAGE):$(VERSION)
test:
docker run -w /app --entrypoint sh --rm -it --init -v `pwd`/:/app \
$(IMAGE):4.1.0-xdebug -c "vendor/bin/phpunit"
image_test:
docker build --platform linux/amd64 -t $(IMAGE):4.1.0-xdebug -f test.dockerfile .
push_test:
docker push $(IMAGE):4.1.0-xdebug
image_box:
docker build --platform linux/amd64 -t spacetabio/box-php:1.1.0 -f box.dockerfile .
push_box:
docker push spacetabio/box-php:1.1.0