From fde3d4c74367f883278f60c50704d83ea599e820 Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Mon, 21 Nov 2016 13:44:12 +0800 Subject: [PATCH] Updated Makefile. --- image/Makefile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/image/Makefile b/image/Makefile index 1b76ae0..fea37ba 100644 --- a/image/Makefile +++ b/image/Makefile @@ -1,9 +1,21 @@ -version=6.0.5 +server_version=6.0.5 + +base_image=seafileorg/base:16.04 +server_image=seafileorg/server:$(server_version) all: - cd seafile && docker build -t seafileorg/server:$(version) . + @echo + @echo Pleaes use '"make base"' or '"make server"' or '"make push"'. + @echo base: - cd base && docker build -t seafileorg/base:16.04 . + cd base && docker build -t $(base_image) . -.PHONY: base +server: + cd seafile && docker build -t $(server_image) . + +push: + docker push $(base_image) + docker push $(server_image) + +.PHONY: base server push