From 42cc2225581ee094fe0e39bf1b0d4d6b68167175 Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Wed, 18 Dec 2024 08:55:02 -0800 Subject: [PATCH] Update Serve command (#116) Co-authored-by: Martijn Laarman --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81ad570..b22e584 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Through the `serve` command you can continuously and partially compile your docu ```bash docker run -v "./.git:/app/.git" -v "./docs:/app/docs" -v "./.artifacts:/app/.artifacts" \ - --expose 8080 ghcr.io/elastic/docs-builder:edge serve + -p 8080:8080 ghcr.io/elastic/docs-builder:edge serve ``` Each page is compiled on demand as you browse http://localhost:8080 and is never cached so changes to files and @@ -148,4 +148,4 @@ The resulting binary `./.artifacts/publish/docs-builder` will run on machines wi To test performance it's best to build the binary and run outside of docker: For refence here's the `markitpy-doc` docset (50k markdown files) currently takes `14s` vs `several minutes` compared to -existing surveyed tools \ No newline at end of file +existing surveyed tools