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 \