Merge pull request #22258 from BenTheElder/fix-container-build

fix container build
This commit is contained in:
Kubernetes Prow Robot
2020-07-16 13:21:01 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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
+1 -1
View File
@@ -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