From d6b3322ad0f625f2408918e35be6edfbcb89f837 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Wed, 1 Jul 2020 14:12:21 -0700 Subject: [PATCH] fix container build - install npm & postcss-cli in docker image - match container build and non-container build hugo command --- Dockerfile | 4 +++- Makefile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d76317ff7f0..3e3335076cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,9 @@ RUN apk add --no-cache \ openssh-client \ rsync \ build-base \ - libc6-compat + libc6-compat \ + npm && \ + npm install -G autoprefixer postcss-cli ARG HUGO_VERSION diff --git a/Makefile b/Makefile index 20691ff76b0..c6a411ddd27 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ container-image: --build-arg HUGO_VERSION=$(HUGO_VERSION) container-build: module-check - $(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo + $(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo --minify container-serve: module-check $(CONTAINER_RUN) --mount type=tmpfs,destination=/src/resources,tmpfs-mode=0755 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0