seafile-containerized/image/Makefile

31 lines
671 B
Makefile
Raw Normal View History

2016-12-21 07:53:07 +00:00
server_version=6.0.7
2016-11-21 05:44:12 +00:00
base_image=seafileorg/base:16.04
base_image_squashed=seafileorg/base:16.04-squashed
2016-11-21 05:44:12 +00:00
server_image=seafileorg/server:$(server_version)
all:
2016-11-21 05:44:12 +00:00
@echo
@echo Pleaes use '"make base"' or '"make server"' or '"make push"'.
@echo
base:
2016-11-21 05:44:12 +00:00
cd base && docker build -t $(base_image) .
squash-base:
docker-squash --tag $(base_image_squashed) $(base_image) --from-layer phusion/baseimage:0.9.19
docker tag $(base_image_squashed) $(base_image)
server:
cd seafile && docker build -t $(server_image) .
2016-12-21 07:53:07 +00:00
push-base:
2016-11-21 05:44:12 +00:00
docker push $(base_image)
2016-12-21 07:53:07 +00:00
push-server:
2016-11-21 05:44:12 +00:00
docker push $(server_image)
2016-12-21 07:53:07 +00:00
push: push-base push-server
.PHONY: base server push push-base push-server