Commit | Line | Data |
---|---|---|
3447089f JR |
1 | # NAME: discourse/discourse |
2 | # VERSION: 1.3.7 | |
3 | FROM discourse/base:1.3.7 | |
7e738616 S |
4 | |
5 | MAINTAINER Sam Saffron "https://twitter.com/samsaffron" | |
6 | ||
fdac0b60 | 7 | # Discourse specific bits |
4ca4c161 RSS |
8 | RUN useradd discourse -s /bin/bash -m -U &&\ |
9 | mkdir -p /var/www &&\ | |
10 | cd /var/www &&\ | |
11 | git clone https://github.com/discourse/discourse.git &&\ | |
12 | cd discourse &&\ | |
13 | git remote set-branches --add origin tests-passed &&\ | |
e56a65f6 | 14 | chown -R discourse:discourse /var/www/discourse &&\ |
b86ac1af | 15 | cd /var/www/discourse &&\ |
4ca4c161 | 16 | sudo -u discourse bundle install --deployment \ |
fdac0b60 | 17 | --without test --without development &&\ |
e56a65f6 | 18 | find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} + |