From 7b966a430cc4e3c1eab5ac35a71531d225d8449f Mon Sep 17 00:00:00 2001 From: Mars Toktonaliev Date: Thu, 21 Oct 2021 01:12:36 +0600 Subject: [PATCH] Fixing npm error when building a contributor-site docker image (#245) * Fixing npm error when building a docker image * Fixing: "make container-server" vs "make container-serve" --- Dockerfile | 5 +++-- README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62f300538..9a1b78bbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,8 @@ RUN apk add --no-cache \ sed \ npm +WORKDIR /src + # Required for PostCSS RUN npm install -G \ autoprefixer \ @@ -24,8 +26,7 @@ RUN mkdir -p /usr/local/src && \ addgroup -Sg 1000 hugo && \ adduser -Sg hugo -u 1000 -h /src hugo -WORKDIR /src USER hugo:hugo -EXPOSE 1313 \ No newline at end of file +EXPOSE 1313 diff --git a/README.md b/README.md index 96498a6c2..cb60e2f9d 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ with generating the site by executing `make container-image`. To ensure you can view the site with externally sourced content, run `make container-gen-content` before previewing the site by with -`make container-serve`. +`make container-server`. ### Natively