mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-22 17:21:58 +00:00
[perf] use docker layer caching from previous build
This commit is contained in:
parent
c4ead8f9e7
commit
8a52906432
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue