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
|
2021-07-07 13:00:49 +00:00
|
|
|
SHARELATEX_BASE_CACHE := $(shell echo $(SHARELATEX_BASE_TAG) | sed -E 's/(.+):.+/\1:latest/')
|
2017-02-22 09:23:01 +00:00
|
|
|
|
|
|
|
build-base:
|
2021-07-07 13:00:49 +00:00
|
|
|
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:
|
2020-05-06 10:59:42 +00:00
|
|
|
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
|