From c225f29b37517eb957a320fed55bdf8322fea2c3 Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Mon, 9 Oct 2017 11:59:16 +0200
Subject: [PATCH] Add pg_dump bin after gem compilation

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

diff --git a/Dockerfile b/Dockerfile
index eee18b4..7e956de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -38,12 +38,6 @@ RUN addgroup --gid 1000 discourse \
       optipng \
  && npm install svgo uglify-js@"<3" -g \
  && cd /tmp \
- && curl -O https://get.enterprisedb.com/postgresql/postgresql-9.5.9-1-linux-x64-binaries.tar.gz \
- && tar zxf postgresql-9.5.9-1-linux-x64-binaries.tar.gz \
- && mv ./pgsql/bin/* /usr/local/bin/ \
- && rm postgresql-9.5.9-1-linux-x64-binaries.tar.gz \
- && rm -rf ./pgsql \
- && cd /tmp \
  && curl -O http://www.lcdf.org/gifsicle/gifsicle-$GIFSICLE_VERSION.tar.gz \
  && tar zxf gifsicle-$GIFSICLE_VERSION.tar.gz \
  && cd gifsicle-$GIFSICLE_VERSION \
@@ -60,6 +54,12 @@ RUN addgroup --gid 1000 discourse \
  && sed -i 's/daemonize true/daemonize false/g' ./config/puma.rb \
  && bundle config build.nokogiri --use-system-libraries \
  && bundle install --deployment --without test --without development \
+ && cd /tmp \
+ && curl -O https://get.enterprisedb.com/postgresql/postgresql-9.5.9-1-linux-x64-binaries.tar.gz \
+ && tar zxf postgresql-9.5.9-1-linux-x64-binaries.tar.gz \
+ && mv ./pgsql/bin/* /usr/local/bin/ \
+ && rm postgresql-9.5.9-1-linux-x64-binaries.tar.gz \
+ && rm -rf ./pgsql \
  && apt-get remove -y --purge ${BUILD_DEPS} \
  && rm -rf /var/lib/apt/lists/*
 
-- 
GitLab