Skip to content

Commit d392c13

Browse files
authored
Merge pull request #22258 from BenTheElder/fix-container-build
fix container build
2 parents 2f075d2 + d6b3322 commit d392c13

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ RUN apk add --no-cache \
1414
openssh-client \
1515
rsync \
1616
build-base \
17-
libc6-compat
17+
libc6-compat \
18+
npm && \
19+
npm install -G autoprefixer postcss-cli
1820

1921
ARG HUGO_VERSION
2022

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ container-image:
6464
--build-arg HUGO_VERSION=$(HUGO_VERSION)
6565

6666
container-build: module-check
67-
$(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo
67+
$(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo --minify
6868

6969
container-serve: module-check
7070
$(CONTAINER_RUN) --mount type=tmpfs,destination=/src/resources,tmpfs-mode=0755 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0

0 commit comments

Comments
 (0)