test
All checks were successful
/ debug (push) Successful in 35s

This commit is contained in:
Jonas 2024-12-13 13:07:55 +01:00
parent 4e21206abb
commit a0891faf8b
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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