From 29abca700cd4376b4ae248afbac8ea99e35a5bc0 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 15 Feb 2024 09:43:32 +0000 Subject: [PATCH] Only pull cached base image for x86_64 (#17043) GitOrigin-RevId: a45325ffece66288fc1d53e60622ad4ec432f53b --- server-ce/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server-ce/Makefile b/server-ce/Makefile index 761ef09a1f..723c0473b9 100644 --- a/server-ce/Makefile +++ b/server-ce/Makefile @@ -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)