[perf] use docker layer caching from previous build

This commit is contained in:
Jakob Ackermann 2021-07-07 14:00:49 +01:00
parent c4ead8f9e7
commit 8a52906432
No known key found for this signature in database
GPG key ID: 30C56800FCA3828A

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: