From b61ca20d80c211926f6c89f8edd10ff1909afed9 Mon Sep 17 00:00:00 2001 From: Billy Tat Date: Tue, 20 Sep 2022 15:36:14 -0700 Subject: [PATCH] Add Docker alternative to preview docs locally --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index aaba2fa1e16..ceac72b0d76 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,12 @@ $ yarn start This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. +You can also use Docker to launch the website without needing to install and configure yarn: + +``` +docker run --rm -it -v $PWD:$PWD -w $PWD -p 3000:3000 node yarn start -h 0.0.0.0 +``` + ### Build ```