From f5c7f0c16f9effe65fce89c73c8abb352a133291 Mon Sep 17 00:00:00 2001 From: Conrad Date: Wed, 18 Mar 2020 14:06:09 +0100 Subject: [PATCH] Added support for jpg files --- Dockerfile | 2 +- entrypoint.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 40e5908..b039fd4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM node:lts-alpine3.9 -RUN apk update && apk upgrade && apk add --no-cache bash git openssh optipng +RUN apk update && apk upgrade && apk add --no-cache bash git openssh optipng jpegoptim COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 00fabb5..091dbba 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,6 +37,7 @@ _git_push() { # PROGRAM find -type f -name "*.png" -exec optipng -nc -nb -o7 {} \; +find -type f -name "*.jpg" -exec jpegoptim -nc -nb -o7 {} \; # To keep runtime good, just continue if something was changed if _git_changed;