Skip to content
Snippets Groups Projects
Commit 340f7ad6 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

use git to know current version

parent 6169e7cf
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,8 @@ ENV DISCOURSE_VERSION=1.4.7 \ ...@@ -12,8 +12,8 @@ ENV DISCOURSE_VERSION=1.4.7 \
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick libxml2 \ RUN apt-get update && apt-get install -y --no-install-recommends imagemagick libxml2 \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN curl -L https://github.com/discourse/discourse/archive/v${DISCOURSE_VERSION}.tar.gz \ RUN git clone --branch v${DISCOURSE_VERSION} https://github.com/discourse/discourse.git . \
| tar -xz -C /usr/src/app --strip-components 1 \ && git remote set-branches --add origin tests-passed \
&& bundle config build.nokogiri --use-system-libraries \ && bundle config build.nokogiri --use-system-libraries \
&& bundle install --deployment --without test --without development && bundle install --deployment --without test --without development
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment