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