parent
05a15b70bb
commit
979335fef0
951 changed files with 11214 additions and 15 deletions
14
docker/Dockerfile
Normal file
14
docker/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM alpine:edge
|
||||
RUN apk add --no-cache \
|
||||
brotli \
|
||||
gzip \
|
||||
hugo \
|
||||
openssh \
|
||||
zstd \
|
||||
rsync \
|
||||
git
|
||||
|
||||
ADD ./build.sh /build.sh
|
||||
RUN chmod a+x /build.sh
|
||||
|
||||
CMD /build.sh
|
8
docker/build.sh
Normal file
8
docker/build.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
hugo
|
||||
find ./public -type f \
|
||||
-regex ".*\.\(css\|html\|js\|json\|svg\|xml\)$" \
|
||||
-exec brotli --best -f {} \+ \
|
||||
-exec gzip --best -k -f {} \+ \
|
||||
-exec zstd -f --ultra -22 {} +\
|
Loading…
Add table
Add a link
Reference in a new issue