ADD cron /etc/service/cron/run
ADD rsyslog /etc/service/rsyslog/run
ADD cron.d_anacron /etc/cron.d/anacron
-
-# Create discourse user and /var/www location for both
-# discourse and dev images.
-RUN useradd discourse -s /bin/bash -m -U &&\
- mkdir -p /var/www
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
# Discourse specific bits
-RUN cd /var/www &&\
- git clone https://github.com/discourse/discourse.git &&\
- cd discourse &&\
- git remote set-branches --add origin tests-passed &&\
+RUN useradd discourse -s /bin/bash -m -U &&\
+ mkdir -p /var/www &&\
+ cd /var/www &&\
+ git clone https://github.com/discourse/discourse.git &&\
+ cd discourse &&\
+ git remote set-branches --add origin tests-passed &&\
chown -R discourse:discourse /var/www/discourse &&\
cd /var/www/discourse &&\
- sudo -u discourse bundle install --deployment \
+ sudo -u discourse bundle install --deployment \
--without test --without development &&\
find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
+# Create discourse user and /var/www location for both
+# discourse and dev images.
+RUN useradd discourse -s /bin/bash -m -U &&\
+ mkdir -p /var/www
+
# Give discourse user no-passwd sudo permissions (for bundle install)
ADD sudoers.discourse /etc/sudoers.d/discourse