Skip to content
Snippets Groups Projects
Commit e13352ad authored by Ismael Posada Trobo's avatar Ismael Posada Trobo
Browse files

Group rm -rf /var/www/discourse into a single RUN command.

parent 5c5ce3a1
No related branches found
Tags v2.6.0.beta1
No related merge requests found
......@@ -42,15 +42,15 @@ RUN \
sed -i 's/^protected-mode yes/protected-mode no/' /etc/redis/redis.conf
### Discourse specific bits
# Remove upstream discourse installation, so we will pre-cook ours.
RUN rm -rf /var/www/discourse
# Install modified version of Discourse
# we can override it with --build_arg
ARG DISCOURSE_VERS='tests-passed'
ENV DISCOURSE_RELEASE=$DISCOURSE_VERS RAILS_ROOT=/discourse HOME=/discourse
RUN mkdir -p discourse && \
# Remove upstream discourse installation, so we will pre-cook ours.
RUN rm -rf /var/www/discourse && \
mkdir -p discourse && \
git clone --single-branch --branch "$DISCOURSE_RELEASE" https://github.com/discourse/discourse.git /discourse
### Discourse config
......
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