From 6412b0de2048beacdd9b03ba672aa3912f3bfa63 Mon Sep 17 00:00:00 2001
From: Timothee Gosselin <timothee@indie.host>
Date: Mon, 31 Jan 2022 16:48:35 +0000
Subject: [PATCH] Add oxipng

---
 Dockerfile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 494f4b8..99100a8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -85,6 +85,12 @@ RUN curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - \
  #&& apt-get autoremove -y \
  && rm -rf /var/lib/apt/lists/*
 
+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 cd /home/discourse/discourse/plugins \
  && for plugin in $(cat /tmp/install/plugin-list); do \
       git clone $plugin; \
-- 
GitLab