[perf] use docker layer caching from previous build

This commit is contained in:
Jakob Ackermann 2021-07-07 14:00:49 +01:00
parent 05885efe93
commit 984eb3bf2d

View file

@ -2,9 +2,11 @@
SHARELATEX_BASE_TAG := sharelatex/sharelatex-base
SHARELATEX_TAG := sharelatex/sharelatex
SHARELATEX_BASE_CACHE := $(shell echo $(SHARELATEX_BASE_TAG) | sed -E 's/(.+):.+/\1:latest/')
build-base:
docker build -f Dockerfile-base -t $(SHARELATEX_BASE_TAG) .
docker pull $(SHARELATEX_BASE_CACHE)
docker build -f Dockerfile-base --pull --cache-from $(SHARELATEX_BASE_CACHE) -t $(SHARELATEX_BASE_TAG) .
build-community: