overleaf/server-ce/Makefile
CNOCycle fb51388f71 correct PHONY target in Makefile (#5434)
COPYBARA_INTEGRATE_REVIEW=https://github.com/overleaf/overleaf/pull/967 from CNOCycle:CNOCycle-patch-1 d5278c9b71

Co-authored-by: CNOCycle <github@marginalman.org>
GitOrigin-RevId: 8aa48e4f617c2fdd689442fb959c9a856fc3b859
2021-10-14 08:03:30 +00:00

20 lines
749 B
Makefile

# Makefile
export SHARELATEX_BASE_TAG := sharelatex/sharelatex-base
export SHARELATEX_TAG := sharelatex/sharelatex
export SHARELATEX_BASE_CACHE := $(shell echo $(SHARELATEX_BASE_TAG) | sed -E 's/(.+):.+/\1:latest/')
export MONOREPO_REVISION := $(shell git rev-parse HEAD)
MONOREPO_ROOT := ../
build-base:
cp .dockerignore $(MONOREPO_ROOT)
docker pull $(SHARELATEX_BASE_CACHE) || echo "nothing cached yet"
docker build -f Dockerfile-base --pull --cache-from $(SHARELATEX_BASE_CACHE) -t $(SHARELATEX_BASE_TAG) $(MONOREPO_ROOT)
build-community:
cp .dockerignore $(MONOREPO_ROOT)
docker build --build-arg SHARELATEX_BASE_TAG --build-arg MONOREPO_REVISION -f Dockerfile -t $(SHARELATEX_TAG) $(MONOREPO_ROOT)
.PHONY: build-base build-community