overleaf/Makefile

17 lines
514 B
Makefile
Raw Permalink Normal View History

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
SHARELATEX_BASE_CACHE := $(shell echo $(SHARELATEX_BASE_TAG) | sed -E 's/(.+):.+/\1:latest/')
2017-02-22 04:23:01 -05: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 04:23:01 -05:00
build-community:
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