Skip to content

Commit fd1ab73

Browse files
committed
Minor Dockerfile xargs tweak
1 parent 3c58039 commit fd1ab73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN hugo build \
1010
--cleanDestinationDir \
1111
--config /src/config.toml
1212

13-
RUN find /src/public -type f \( -name '*.html' -o -name '*.css' -o -name '*.js' -o -name '*.xml' -o -name '*.json' -o -name '*.svg' -o -name '*.txt' \) -print0 | xargs -0 -P4 -n32 gzip --best -kf
13+
RUN find /src/public -type f \( -name '*.html' -o -name '*.css' -o -name '*.js' -o -name '*.xml' -o -name '*.json' -o -name '*.svg' -o -name '*.txt' \) -print0 | xargs -0 -P4 -n32 --no-run-if-empty gzip --best -kf
1414

1515
# ---------------------------------------------------
1616

0 commit comments

Comments
 (0)