diff --git a/actions/sleep/Dockerfile b/actions/sleep/Dockerfile index 085d8fb..f136650 100644 --- a/actions/sleep/Dockerfile +++ b/actions/sleep/Dockerfile @@ -1,5 +1,9 @@ FROM alpine:latest +RUN apk add --no-cache \ + openssh \ + rsync + COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/actions/sleep/entrypoint.sh b/actions/sleep/entrypoint.sh index 2f7d3db..6984b7d 100644 --- a/actions/sleep/entrypoint.sh +++ b/actions/sleep/entrypoint.sh @@ -1,4 +1,8 @@ #!/bin/sh +find ./public -type f -regex ".*\.\(css\|html\|js\|json\|svg\|xml\)$" \ + -exec brotli --best -f {} \+ \ + -exec gzip --best -k -f {} \+ + sleep 3 exit 0