From 7cecafe5ff7b1dcb8ae18a9903ad0bf0eb0ff387 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Thu, 2 Apr 2020 09:29:14 -0400 Subject: [PATCH] add instructions to running docker to README Signed-off-by: Matthew Peveler --- .dockerignore | 2 ++ README.md | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000000..1cf061121fc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +build/ +.github/ diff --git a/README.md b/README.md index fa3c23487c0..0166dc1a876 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,10 @@ bundle exec middleman server # OR run this to run with vagrant vagrant up + +# OR run this to run with docker +docker build . -t slate:latest # this only needs to be run once +docker run -p 4567:4567 -v $(pwd)/source:/srv/slate/source slate:latest ``` You can now see the docs at http://localhost:4567. Whoa! That was fast!