parent
4e21206abb
commit
a0891faf8b
2 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
openssh \
|
||||||
|
rsync
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
find ./public -type f -regex ".*\.\(css\|html\|js\|json\|svg\|xml\)$" \
|
||||||
|
-exec brotli --best -f {} \+ \
|
||||||
|
-exec gzip --best -k -f {} \+
|
||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue