DEV: Add oxipng binary to base image (#579)

DEV: Add oxipng binary to base image (#579)

image_optim, a ruby library we use, now has support for oxipng:

Add support for Oxipng by oblakeerickson · Pull Request #190 · toy/image_optim · GitHub

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.

diff --git a/image/base/Dockerfile b/image/base/Dockerfile
index bca5e3c..349a498 100644
--- a/image/base/Dockerfile
+++ b/image/base/Dockerfile
@@ -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 &&\

GitHub sha: 244c9cb110df44eb9d846a24b5572471a2687071

This commit appears in #579 which was approved by CvX. It was merged by blake.