2017-01-25 04:43:56 +00:00
|
|
|
# If we have `--squash` support, then use it!
|
|
|
|
ifneq ($(shell docker build --help 2>/dev/null | grep squash),)
|
|
|
|
DOCKER_BUILD = docker build --squash
|
|
|
|
else
|
|
|
|
DOCKER_BUILD = docker build
|
|
|
|
endif
|
|
|
|
|
2017-01-01 20:58:42 +00:00
|
|
|
all: build
|
|
|
|
|
|
|
|
build: Makefile Dockerfile
|
2017-01-25 04:43:56 +00:00
|
|
|
$(DOCKER_BUILD) -t staticfloat/nginx-certbot .
|
2017-01-23 06:58:30 +00:00
|
|
|
@echo "Done! Use docker run staticfloat/nginx-certbot to run"
|
2017-01-01 20:58:42 +00:00
|
|
|
|
2017-01-02 05:34:59 +00:00
|
|
|
push:
|
2017-01-23 06:58:30 +00:00
|
|
|
docker push staticfloat/nginx-certbot
|