Only pull cached base image for x86_64 (#17043)

GitOrigin-RevId: a45325ffece66288fc1d53e60622ad4ec432f53b
This commit is contained in:
Alf Eaton 2024-02-15 09:43:32 +00:00 committed by Copybot
parent 12326b420d
commit 29abca700c

View file

@ -10,7 +10,9 @@ all: build-base build-community
build-base:
cp .dockerignore $(MONOREPO_ROOT)
ifeq ($(shell uname -m),x86_64)
docker pull $(OVERLEAF_BASE_CACHE) || echo "nothing cached yet"
endif
docker build -f Dockerfile-base --pull --cache-from $(OVERLEAF_BASE_CACHE) -t $(OVERLEAF_BASE_TAG) $(MONOREPO_ROOT)