Skip to content

Commit

Permalink
[FEATURE] add image optim tools
Browse files Browse the repository at this point in the history
jpegoptim, pngcrush and many more
  • Loading branch information
htuscher committed Dec 24, 2018
1 parent 1c35018 commit ee5846d
Show file tree
Hide file tree
Showing 32 changed files with 194 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/base/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
sed \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/debian-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/debian-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/debian-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-12.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-14.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-15.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-15.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-16.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-17.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-17.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
1 change: 1 addition & 0 deletions docker/base/ubuntu-18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down
14 changes: 14 additions & 0 deletions docker/php-official/5.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down Expand Up @@ -107,6 +108,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Libraries
libldap-2.4-2 \
libxslt1.1 \
Expand All @@ -133,6 +141,12 @@ RUN set -x \
libzip-dev \
libc-client-dev \
libkrb5-dev \
# Install guetzli
&& wget https://github.com/google/guetzli/archive/master.zip \
&& unzip master.zip \
&& make -C guetzli-master \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master
# Install extensions
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
Expand Down
14 changes: 14 additions & 0 deletions docker/php-official/7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down Expand Up @@ -107,6 +108,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Libraries
libldap-2.4-2 \
libxslt1.1 \
Expand All @@ -133,6 +141,12 @@ RUN set -x \
libzip-dev \
libc-client-dev \
libkrb5-dev \
# Install guetzli
&& wget https://github.com/google/guetzli/archive/master.zip \
&& unzip master.zip \
&& make -C guetzli-master \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master
# Install extensions
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
Expand Down
14 changes: 14 additions & 0 deletions docker/php-official/7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down Expand Up @@ -107,6 +108,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Libraries
libldap-2.4-2 \
libxslt1.1 \
Expand All @@ -133,6 +141,12 @@ RUN set -x \
libzip-dev \
libc-client-dev \
libkrb5-dev \
# Install guetzli
&& wget https://github.com/google/guetzli/archive/master.zip \
&& unzip master.zip \
&& make -C guetzli-master \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master
# Install extensions
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
Expand Down
14 changes: 14 additions & 0 deletions docker/php-official/7.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down Expand Up @@ -107,6 +108,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Libraries
libldap-2.4-2 \
libxslt1.1 \
Expand All @@ -133,6 +141,12 @@ RUN set -x \
libzip-dev \
libc-client-dev \
libkrb5-dev \
# Install guetzli
&& wget https://github.com/google/guetzli/archive/master.zip \
&& unzip master.zip \
&& make -C guetzli-master \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master
# Install extensions
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
Expand Down
14 changes: 14 additions & 0 deletions docker/php-official/7.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ RUN set -x \
supervisor \
wget \
curl \
vim \
net-tools \
tzdata \
&& chmod +s /sbin/gosu \
Expand Down Expand Up @@ -107,6 +108,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Libraries
libldap-2.4-2 \
libxslt1.1 \
Expand All @@ -133,6 +141,12 @@ RUN set -x \
libzip-dev \
libc-client-dev \
libkrb5-dev \
# Install guetzli
&& wget https://github.com/google/guetzli/archive/master.zip \
&& unzip master.zip \
&& make -C guetzli-master \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master
# Install extensions
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
Expand Down
5 changes: 5 additions & 0 deletions docker/php/alpine-php7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
pngcrush \
libjpeg-turbo-utils \
optipng \
pngquant \
# Install php (cli/fpm)
php7-fpm \
php7-json \
Expand Down
6 changes: 6 additions & 0 deletions docker/php/centos-7-php7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ RUN set -x \
&& yum-install \
ImageMagick \
GraphicsMagick \
jpegoptim \
libjpeg-turbo-utils \
optipng \
pngcrush \
pngnq \
pngquant \
# Install php (cli/fpm)
php70w-cli \
php70w-fpm \
Expand Down
7 changes: 7 additions & 0 deletions docker/php/debian-8-php7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Install php (cli/fpm)
php7.0-cli \
php7.0-fpm \
Expand Down
7 changes: 7 additions & 0 deletions docker/php/debian-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Install php (cli/fpm)
php7.0-cli \
php7.0-fpm \
Expand Down
7 changes: 7 additions & 0 deletions docker/php/ubuntu-16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Install php (cli/fpm)
php7.0-cli \
php7.0-fpm \
Expand Down
7 changes: 7 additions & 0 deletions docker/php/ubuntu-16.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Install php (cli/fpm)
php7.0-cli \
php7.0-fpm \
Expand Down
7 changes: 7 additions & 0 deletions docker/php/ubuntu-17.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Install php (cli/fpm)
php7.0-cli \
php7.0-fpm \
Expand Down
7 changes: 7 additions & 0 deletions docker/php/ubuntu-17.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ RUN set -x \
imagemagick \
graphicsmagick \
ghostscript \
jpegoptim \
libjpeg-turbo-progs \
pngcrush \
optipng \
apngopt \
pngnq \
pngquant \
# Install php (cli/fpm)
php7.1-cli \
php7.1-fpm \
Expand Down

0 comments on commit ee5846d

Please sign in to comment.