overleaf/Makefile

17 lines
514 B
Makefile
Raw Normal View History

2017-02-22 09:23:01 +00:00
# Makefile
2020-04-15 14:11:31 +00:00
SHARELATEX_BASE_TAG := sharelatex/sharelatex-base
SHARELATEX_TAG := sharelatex/sharelatex
SHARELATEX_BASE_CACHE := $(shell echo $(SHARELATEX_BASE_TAG) | sed -E 's/(.+):.+/\1:latest/')
2017-02-22 09:23:01 +00:00
build-base:
docker pull $(SHARELATEX_BASE_CACHE)
docker build -f Dockerfile-base --pull --cache-from $(SHARELATEX_BASE_CACHE) -t $(SHARELATEX_BASE_TAG) .
2017-02-22 09:23:01 +00:00
build-community:
docker build --build-arg SHARELATEX_BASE_TAG=$(SHARELATEX_BASE_TAG) -f Dockerfile -t $(SHARELATEX_TAG) .
2017-02-22 09:23:01 +00:00
PHONY: build-base build-community