Skip to content

Commit

Permalink
DEV: Add oxipng binary to base image (#579)
Browse files Browse the repository at this point in the history
image_optim, a ruby library we use, now has support for oxipng:

 toy/image_optim#190 (comment)

So I'm adding the oxipng binary to the base image so that we can
start using it. There currently isn't an apt package for it.
  • Loading branch information
oblakeerickson committed Nov 8, 2021
1 parent e73dd1e commit 244c9cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions image/base/Dockerfile
Expand Up @@ -63,6 +63,12 @@ RUN /tmp/install-nginx

RUN apt -y install advancecomp jhead jpegoptim libjpeg-turbo-progs optipng

RUN mkdir /oxipng-install && cd /oxipng-install &&\
wget https://github.com/shssoichiro/oxipng/releases/download/v5.0.0/oxipng-5.0.0-x86_64-unknown-linux-musl.tar.gz &&\
tar -xzf oxipng-5.0.0-x86_64-unknown-linux-musl.tar.gz && cd oxipng-5.0.0-x86_64-unknown-linux-musl &&\
cp oxipng /usr/local/bin &&\
cd / && rm -rf /oxipng-install

RUN mkdir /jemalloc-stable && cd /jemalloc-stable &&\
wget https://github.com/jemalloc/jemalloc/releases/download/3.6.0/jemalloc-3.6.0.tar.bz2 &&\
tar -xjf jemalloc-3.6.0.tar.bz2 && cd jemalloc-3.6.0 && ./configure --prefix=/usr && make && make install &&\
Expand Down

0 comments on commit 244c9cb

Please sign in to comment.