From 340f7ad6fbed587306eb74dd6a775dff168c3ca1 Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Thu, 9 Jun 2016 09:10:02 +0100
Subject: [PATCH] use git to know current version

---
 Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 192653e..815225e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,8 +12,8 @@ ENV DISCOURSE_VERSION=1.4.7 \
 RUN apt-get update && apt-get install -y --no-install-recommends imagemagick libxml2 \
  && rm -rf /var/lib/apt/lists/*
 
-RUN curl -L https://github.com/discourse/discourse/archive/v${DISCOURSE_VERSION}.tar.gz \
-  | tar -xz -C /usr/src/app --strip-components 1 \
+RUN git clone --branch v${DISCOURSE_VERSION} https://github.com/discourse/discourse.git . \
+ && git remote set-branches --add origin tests-passed \
  && bundle config build.nokogiri --use-system-libraries \
  && bundle install --deployment --without test --without development
 
-- 
GitLab