docker changes and user authenticated message

This commit is contained in:
2014-10-09 15:08:37 +02:00
parent c6c26124c8
commit 9e9855f762
12 changed files with 41 additions and 12 deletions
+4 -1
View File
@@ -11,7 +11,7 @@ ADD Gemfile.lock /var/www/
RUN chown -R web:web /var/www &&\
mkdir -p /var/bundle &&\
chown -R web:web /var/bundle
RUN su -c "cd /var/www && bundle install --deployment --without development test --path /var/bundle" -s /bin/bash -l web
RUN su -c "cd /var/www && bundle install --deployment --without development test assets --path /var/bundle" -s /bin/bash -l web
# Add application source
ADD . /var/www
@@ -21,4 +21,7 @@ USER web
WORKDIR /var/www
#VOLUME ['/Users/bterkuile/companytools/development/rails/mozo_bar/public/system:/var/www/public/system']
EXPOSE 3000
CMD ["bundle", "exec", "foreman", "start"]