From 9140157fcf529549e31e6c7e755e5b18e5ac8310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Thu, 18 Oct 2018 22:52:05 +0200 Subject: [PATCH] Remove external dependencies on jpegtran, optipng, pngcrush and pngquant. Depend on binaries through npm dependencies. Refs #627 --- Dockerfile | 5 ----- README.md | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index f7602b950..02fd0fbc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,7 @@ RUN apt-get update \ libcairo2-dev \ libgif-dev \ libgsf-1-dev \ - libjpeg-progs \ libpango1.0-dev \ - libvips-dev \ - optipng \ - pngcrush \ - pngquant \ && rm -rf /var/lib/apt/lists/* ENV NPM_CONFIG_PREFIX=/home/node/.npm-global diff --git a/README.md b/README.md index eedeef2f1..8a51d387a 100644 --- a/README.md +++ b/README.md @@ -82,13 +82,13 @@ and optimization features, you need several libraries and command line utilities installed. On Ubuntu you can grab them all by running: ``` -sudo apt-get install -y libcairo2-dev libjpeg8-dev libgif-dev optipng pngcrush pngquant libpango1.0-dev graphicsmagick libjpeg-progs inkscape +sudo apt-get install -y libcairo2-dev libjpeg8-dev libgif-dev libpango1.0-dev graphicsmagick inkscape ``` Or on OS X, with [homebrew](http://brew.sh/): ``` -brew install cairo jpeg giflib optipng pngcrush pngquant pango graphicsmagick jpeg-turbo homebrew/gui/inkscape +brew install cairo giflib pango graphicsmagick jpeg-turbo homebrew/gui/inkscape brew install homebrew/science/vips --with-webp --with-graphicsmagick export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig ```