Skip to content

Commit

Permalink
Fixing npm error when building a contributor-site docker image (kuber…
Browse files Browse the repository at this point in the history
…netes#245)

* Fixing npm error when building a docker image

* Fixing: "make container-server" vs "make container-serve"
  • Loading branch information
tokt authored Oct 20, 2021
1 parent 6041b6b commit 7b966a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ RUN apk add --no-cache \
sed \
npm

WORKDIR /src

# Required for PostCSS
RUN npm install -G \
autoprefixer \
Expand All @@ -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
EXPOSE 1313
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b966a4

Please sign in to comment.