mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
31 lines
672 B
Makefile
31 lines
672 B
Makefile
server_version=6.2.3
|
|
|
|
base_image=seafileltd/base:16.04
|
|
base_image_squashed=seafileltd/base:16.04-squashed
|
|
server_image=seafileltd/seafile:$(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) --from-layer phusion/baseimage:0.9.19
|
|
docker tag $(base_image_squashed) $(base_image)
|
|
|
|
server:
|
|
cd seafile && docker build -t $(server_image) .
|
|
|
|
push-base:
|
|
docker push $(base_image)
|
|
|
|
push-server:
|
|
docker push $(server_image)
|
|
|
|
push: push-base push-server
|
|
|
|
.PHONY: base server push push-base push-server
|