Skip to content

Commit

Permalink
fix container build
Browse files Browse the repository at this point in the history
- install npm & postcss-cli in docker image
- match container build and non-container build hugo command
  • Loading branch information
BenTheElder committed Jul 15, 2020
1 parent b647c7b commit d6b3322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6b3322

Please sign in to comment.