From 2e2415c56e24da793ec80173a194541465fa791b Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Mon, 14 Jul 2025 12:14:02 +0200 Subject: [PATCH] [server-pro] move revision from /var/www/revisions.txt into label (#27071) Co-authored-by: Brian Gough GitOrigin-RevId: d760498b50006a23f446a91647954d00fa22f2f2 --- server-ce/Dockerfile | 6 ------ server-ce/Makefile | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/server-ce/Dockerfile b/server-ce/Dockerfile index 0c33505550..5f32eb67cb 100644 --- a/server-ce/Dockerfile +++ b/server-ce/Dockerfile @@ -115,9 +115,3 @@ ENV LOG_LEVEL="info" EXPOSE 80 ENTRYPOINT ["/sbin/my_init"] - -# Store the revision -# ------------------ -# This should be the last step to optimize docker image caching. -ARG MONOREPO_REVISION -RUN echo "monorepo-server-ce,$MONOREPO_REVISION" > /var/www/revisions.txt diff --git a/server-ce/Makefile b/server-ce/Makefile index eb6ea772f1..853a99d05e 100644 --- a/server-ce/Makefile +++ b/server-ce/Makefile @@ -33,7 +33,7 @@ build-community: --build-arg BUILDKIT_INLINE_CACHE=1 \ --progress=plain \ --build-arg OVERLEAF_BASE_TAG \ - --build-arg MONOREPO_REVISION \ + --label "com.overleaf.ce.revision=$(MONOREPO_REVISION)" \ --cache-from $(OVERLEAF_LATEST) \ --cache-from $(OVERLEAF_BRANCH) \ --file Dockerfile \