From ebb19326b84b6db6cb2c8c5f6479100a65e91a71 Mon Sep 17 00:00:00 2001 From: Lucian Maly Date: Fri, 13 Jul 2018 22:31:26 +0200 Subject: [PATCH] Target docker-serve does not exist + removed $ (#9450) --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 31cf792ea0..b2f1f45fda 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ For more information about contributing to the Kubernetes documentation, see: If you'd like, you can build the Kubernetes docs using Docker. To get started, build the image locally: ```bash -$ make docker-image +make docker-image # The underlying command: -$ docker build . \ +docker build . \ --tag kubernetes-hugo \ --build-arg HUGO_VERSION=0.40.3 ``` @@ -33,16 +33,17 @@ You can create an image for a different version of Hugo by changing the value of Once the `kubernetes-hugo` image has been built locally, you can build the site: ```bash -$ make docker-serve +make stage # The underlying command: -$ docker run \ +docker run \ --rm \ --interactive \ --tty \ --volume $(PWD):/src \ - kubernetes-hugo:latest \ - hugo + -p 1313:1313 \ + kubernetes-hugo \ + hugo server --watch --bind 0.0.0.0 ``` As when building without using a Docker container, the results of the build will be published to the `public` directory (the default output directory for [Hugo](https://gohugo.io), the static site generator used to build this site). @@ -50,4 +51,4 @@ As when building without using a Docker container, the results of the build will ## Thank you! Kubernetes thrives on community participation, and we really appreciate your -contributions to our site and our documentation! \ No newline at end of file +contributions to our site and our documentation!