fix build
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ RUN apk add --no-cache \
|
|||||||
build-base \
|
build-base \
|
||||||
libc6-compat \
|
libc6-compat \
|
||||||
npm && \
|
npm && \
|
||||||
npm install -G autoprefixer postcss-cli
|
npm install -D autoprefixer postcss-cli
|
||||||
|
|
||||||
ARG HUGO_VERSION
|
ARG HUGO_VERSION
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ container-image:
|
|||||||
--build-arg HUGO_VERSION=$(HUGO_VERSION)
|
--build-arg HUGO_VERSION=$(HUGO_VERSION)
|
||||||
|
|
||||||
container-build: module-check
|
container-build: module-check
|
||||||
$(CONTAINER_RUN) --read-only $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify"
|
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify"
|
||||||
|
|
||||||
container-serve: module-check
|
container-serve: module-check
|
||||||
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir
|
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir
|
||||||
|
|||||||
Reference in New Issue
Block a user