seafile-containerized/image/Makefile
2016-11-25 16:13:06 +08:00

27 lines
563 B
Makefile

server_version=6.0.5
base_image=seafileorg/base:16.04
base_image_squashed=seafileorg/base:16.04-squashed
server_image=seafileorg/server:$(server_version)
all:
@echo
@echo Pleaes use '"make base"' or '"make server"' or '"make push"'.
@echo
base:
cd base && docker build -t $(base_image) .
squash-base:
docker-squash --tag $(base_image_squashed) $(base_image)
docker tag $(base_image_squashed) $(base_image)
server:
cd seafile && docker build -t $(server_image) .
push:
docker push $(base_image)
docker push $(server_image)
.PHONY: base server push